@@ -20,76 +20,77 @@ buildscript {
2020}
2121apply plugin : ' build-dashboard'
2222apply plugin : ' project-report'
23+ apply plugin : " com.github.adrianbk.tcitrigger"
24+ apply plugin : ' springfox-multi-release'
2325
2426ext {
2527 apiKey = System . getenv(' GIT_HUB_API_KEY' )
2628 jdkVersion = 1.6
2729}
2830
29- apply plugin : ' springfox-multi-release'
30-
31- configure(ProjectDefinitions . publishable(project)) { subproject ->
31+ subprojects {
3232 apply plugin : " com.ofg.uptodate"
3333 // Not strictly groovy projects but useful for the IDE to recognise groovy test sources
3434 apply plugin : ' groovy' // gradle groovy plugin extends the java plugin
35+ apply plugin : ' com.github.adrianbk.jvmsrc'
36+ apply plugin : ' checkstyle'
37+ apply from : " $rootDir /gradle/coverage.gradle"
38+ // Commented PMD and Findbugs as its taking too much time for very little value
39+ // Perhaps run every 20 CI builds (mod of ci build number)
40+ // apply from: "$rootDir/gradle/code-quality.gradle"
41+ if (ProjectDefinitions . publishable(it)) {
42+ apply plugin : ' maven-publish'
43+ apply from : " $rootDir /gradle/publishing.gradle"
44+ apply from : " $rootDir /gradle/artifacts.gradle"
45+ apply from : " $rootDir /gradle/bintray_publish.gradle"
46+ }
47+ repositories {
48+ jcenter()
49+ }
3550
36- test {
37- maxParallelForks = 2
51+ checkstyle {
52+ configFile = file( " $r ootDir /config/checkstyle.xml " )
3853 }
3954
40- compileJava . options . encoding = ' UTF-8 '
55+ checkstyleMain . source = " src/main/java "
4156
42- sourceCompatibility = jdkVersion
43- targetCompatibility = jdkVersion
57+ test {
58+ maxParallelForks = 2
59+ }
4460
4561 configurations {
4662 provided
4763 compile. extendsFrom provided
4864 }
4965
50- group = ' io.springfox'
51-
52- apply plugin : ' com.github.adrianbk.jvmsrc'
5366 jvmsrc {
5467 packageName " springfox"
5568 }
5669
70+ compileJava. options. encoding = ' UTF-8'
71+
72+ sourceCompatibility = jdkVersion
73+ targetCompatibility = jdkVersion
74+ group = ' io.springfox'
75+ version = project. version
76+
5777 jar {
5878 manifest {
5979 attributes(
60- ' Implementation-Title' : " ${ project.name} " ,
61- ' Implementation-Version' : version. toString(),
62- ' Created-By' : System . getProperty(' java.version' ) + ' (' + System . getProperty(' java.vendor' ) + ' )' ,
63- ' Built-With' : " gradle-${ project.getGradle().getGradleVersion()} , groovy-${ GroovySystem.getVersion()} " ,
64- ' Build-Time' : " ${ new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")} " ,
65- ' Built-By' : System . getProperty(' user.name' ),
66- ' Built-On' : " ${ InetAddress.localHost.hostName} /${ InetAddress.localHost.hostAddress} "
80+ ' Implementation-Title' : " ${ project.name} " ,
81+ ' Implementation-Version' : version. toString(),
82+ ' Created-By' : System . getProperty(' java.version' ) + ' (' + System . getProperty(' java.vendor' ) + ' )' ,
83+ ' Built-With' : " gradle-${ project.getGradle().getGradleVersion()} , groovy-${ GroovySystem.getVersion()} " ,
84+ ' Build-Time' : " ${ new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")} " ,
85+ ' Built-By' : System . getProperty(' user.name' ),
86+ ' Built-On' : " ${ InetAddress.localHost.hostName} /${ InetAddress.localHost.hostAddress} "
6787 )
6888 }
6989 }
70-
71- apply plugin : ' checkstyle'
72- checkstyle {
73- configFile = file(" $rootDir /config/checkstyle.xml" )
74- }
75- checkstyleMain. source = " src/main/java"
76-
77- apply plugin : ' maven-publish'
78- apply from : " $rootDir /gradle/publishing.gradle"
79- apply from : " $rootDir /gradle/artifacts.gradle"
80- apply from : " $rootDir /gradle/bintray_publish.gradle"
81- apply from : " $rootDir /gradle/coverage.gradle"
82- // Commented PMD and Findbugs as its taking too much time for very little value
83- // Perhaps run every 20 CI builds (mod of ci build number)
84- // apply from: "$rootDir/gradle/code-quality.gradle"
85-
86- repositories {
87- jcenter()
88- }
89-
9090}
9191
9292apply plugin : " com.github.adrianbk.tcitrigger"
93+ apply from : " $rootDir /gradle/documentation.gradle"
9394
9495tciTrigger {
9596 gitHubRepo ' adrianbk/swagger-springmvc-demo'
@@ -101,4 +102,3 @@ tciTrigger {
101102 }
102103}
103104
104- apply from : " $rootDir /gradle/documentation.gradle"
0 commit comments