-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
87 lines (74 loc) · 2.26 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
plugins {
id "com.palantir.git-version" version "0.12.3"
id "com.gradle.plugin-publish" version "0.12.0"
id "com.diffplug.spotless" version "5.7.0"
}
apply plugin: 'groovy'
apply plugin: "com.gradle.plugin-publish"
apply plugin: 'com.palantir.git-version'
apply plugin: 'com.diffplug.spotless'
group = 'eu.emundo'
description = "Gradle Plugin for Octane Model Generator"
version = gitVersion()
println ''
println '###############################################'
println '#'
println "# ${description} $version"
println '#'
println '###############################################'
println ''
repositories {
if (project.hasProperty("mavenRepository")) {
maven {
url "$mavenRepository"
credentials {
username "$mavenUsername"
password "$mavenPassword"
}
}
}
jcenter()
mavenCentral()
mavenLocal()
}
def sdkVersion = "15.1.60"
if (project.hasProperty("octaneSdkVersion")) {
sdkVersion = octaneSdkVersion
logger.info("sdkVersion: $octaneSdkVersion")
}
dependencies {
compile gradleApi()
compile localGroovy()
compile group: 'com.microfocus.adm.almoctane.sdk', name: 'sdk-src', version: "$sdkVersion"
compile group: 'org.apache.velocity', name: 'velocity', version: '1.7'
}
pluginBundle {
website = 'https://github.com/emundo/octane-gradle-plugin'
vcsUrl = 'https://github.com/emundo/octane-gradle-plugin.git'
plugins {
generateModelsPlugin {
tags = ['octane', 'alm', 'models', 'entity', 'generator']
description = 'Gradle Plugin for Octane Model Generator.'
id = 'eu.emundo.octane.generator'
displayName = 'Gradle Octane Model Generator plugin'
}
}
}
// Formatting
spotless {
java {
removeUnusedImports()
trimTrailingWhitespace()
importOrderFile "${project.rootDir}/importorder.properties"
eclipse('4.8.0').configFile "${project.rootDir}/eclipse-formatter.xml"
}
format 'misc', {
target project.fileTree(project.rootDir) {
include '**/*.gradle', '**/.gitignore', '*.yml', '**/*.xml'
exclude '**/.idea/*'
}
trimTrailingWhitespace()
indentWithSpaces(4)
endWithNewline()
}
}