forked from springfox/springfox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
90 lines (73 loc) · 2.36 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
88
89
90
apply from: "$rootDir/gradle/dependencies.gradle"
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.github.adrianbk:gradle-jvmsrc-plugin:0.6.1"
classpath "org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.0.0"
classpath "com.github.adrianbk:gradle-travisci-trigger-plugin:1.0.0"
classpath 'org.codehaus.groovy.modules.http-builder:http-builder:0.7.1'
classpath "com.ofg:uptodate-gradle-plugin:1.1.0"
}
}
ext {
apiKey = System.getenv('GIT_HUB_API_KEY')
projectVersion = '1.0.2-SNAPSHOT'
}
configure(subprojects.findAll { it.name == 'swagger-springmvc' || it.name == 'swagger-models' }) { subproject ->
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: "com.ofg.uptodate"
apply plugin: 'maven'
apply plugin: 'idea'
compileJava.options.encoding = 'UTF-8'
sourceCompatibility = 1.6
targetCompatibility = 1.6
//Adds provide dependency configuration
configurations {
provided
compile.extendsFrom provided
}
group = 'com.mangofactory'
version = projectVersion
apply plugin: 'com.github.adrianbk.jvmsrc'
jvmsrc {
packageName "${group}.swagger"
}
jar {
manifest {
attributes(
'Implementation-Title': "${project.name}",
'Implementation-Version': version.toString(),
'Created-By': System.getProperty('java.version') + ' (' + System.getProperty('java.vendor') + ')',
'Built-With': "gradle-${project.getGradle().getGradleVersion()}, groovy-${GroovySystem.getVersion()}",
'Build-Time': "${new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")}",
'Built-By': System.getProperty('user.name'),
'Built-On': "${InetAddress.localHost.hostName}/${InetAddress.localHost.hostAddress}"
)
}
}
apply plugin: 'checkstyle'
checkstyle {
configFile = file("$rootDir/config/checkstyle.xml")
}
apply plugin: 'maven-publish'
apply from: "$rootDir/gradle/publishing.gradle"
apply from: "$rootDir/gradle/coverage.gradle"
apply from: "$rootDir/gradle/code-quality.gradle"
repositories {
jcenter()
}
}
apply plugin: "com.github.adrianbk.tcitrigger"
tciTrigger {
gitHubRepo 'adrianbk/swagger-springmvc-demo'
gitHubApiKeyVarName = 'GIT_HUB_API_KEY'
travisVariable {
name = "LATEST_SSMVC_VERSION"
value = "${projectVersion}"
visible = true
}
}
task wrapper(type: Wrapper) {}