11plugins  {
22    id ' com.gorylenko.gradle-git-properties'   version ' 2.3.1' 
33    id ' org.springframework.boot'   version ' 2.4.5' 
4+     //  id 'org.springframework.experimental.aot' version '0.9.2'
45    id ' io.spring.dependency-management'   version ' 1.0.11.RELEASE' 
56    id ' com.github.ben-manes.versions'   version ' 0.38.0' 
67    id ' io.franzbecker.gradle-lombok'   version ' 4.0.0' 
@@ -39,19 +40,17 @@ spotbugsMain {
3940}
4041
4142group =  ' io.pivotal' 
42- version =  ' 0.1-SNAPSHOT' 
4343sourceCompatibility =  JavaVersion . VERSION_11 
4444
4545repositories  {
46- 	mavenCentral()
47-     maven { url " https://repo.spring.io/snapshot"   }
48- 	maven { url " https://repo.spring.io/milestone"   }
46+ 	maven { url ' https://repo.spring.io/release'   }
47+     mavenCentral()
4948}
5049
5150ext  {
52- 	set(' springCloudServicesVersion'  , ' 3.2.0 .RELEASE'  )
53- 	set(' springCloudVersion'  , " 2020.0.1 "  )
54-     set(' spring-cloud-services-connectors.version'  , ' 3.2.0 .RELEASE'  )
51+ 	set(' springCloudServicesVersion'  , ' 3.2.1 .RELEASE'  )
52+ 	set(' springCloudVersion'  , ' 2020.0.2 '  )
53+     set(' spring-cloud-services-connectors.version'  , ' 3.2.1 .RELEASE'  )
5554}
5655
5756dependencyManagement  {
@@ -61,13 +60,36 @@ dependencyManagement {
6160	}
6261}
6362
63+ //  bootBuildImage {
64+ //      builder = "paketobuildpacks/builder:tiny"
65+ //      environment = [
66+ //          "BP_NATIVE_IMAGE" : "true"
67+ //      ]
68+ //  }
69+ 
6470bootRun  {
6571    //  support passing -Dsystem.property=value to bootRun task
6672    systemProperties =  System . properties
6773}
6874
6975configurations  {
76+     //  exclude Logback
7077    implementation. exclude group : ' org.springframework.boot'  , module : ' spring-boot-starter-logging' 
78+     [apiElements, runtimeElements]. each {
79+       it. outgoing. artifacts. removeIf { it. buildDependencies. getDependencies(null ). contains(jar) }
80+       it. outgoing. artifact(bootJar)
81+     }
82+ }
83+ 
84+ test  {
85+ 	useJUnitPlatform()
86+ 	testLogging {
87+ 		events " passed"  , " skipped"  , " failed" 
88+         exceptionFormat " full" 
89+         showCauses true 
90+         showExceptions true 
91+         showStackTraces true 
92+ 	}
7193}
7294
7395java  {
7698}
7799
78100jacoco  {
79- 	toolVersion =  " 0.8.6 " 
101+ 	toolVersion =  " 0.8.7 " 
80102}
81103
82104jacocoTestReport  {
@@ -87,16 +109,6 @@ jacocoTestReport {
87109	}
88110}
89111
90- test  {
91- 	useJUnitPlatform()
92- 	testLogging {
93- 		events " passed"  , " skipped"  , " failed" 
94-         exceptionFormat " full" 
95-         showCauses true 
96-         showExceptions true 
97-         showStackTraces true 
98- 	}
99- }
100112
101113pitest  {
102114    testPlugin =  " junit5" 
@@ -120,8 +132,8 @@ dependencies {
120132    implementation(' org.springframework.boot:spring-boot-starter-log4j2'  )
121133    implementation(' com.lmax:disruptor:3.4.4'  )
122134    implementation(' org.apache.httpcomponents:httpclient:4.5.13'  )
123-     implementation(' io.projectreactor:reactor-core:3.4.5 '  )
124-     implementation(' io.projectreactor.netty:reactor-netty:1.0.6 '  )
135+     implementation(' io.projectreactor:reactor-core:3.4.6 '  )
136+     implementation(' io.projectreactor.netty:reactor-netty:1.0.7 '  )
125137    implementation(' io.micrometer:micrometer-registry-prometheus'  )
126138    testImplementation(' io.projectreactor:reactor-test'  )
127139    testImplementation(' org.assertj:assertj-core:3.19.0'  )
@@ -138,7 +150,8 @@ dependencies {
138150
139151publishing  {
140152    publications {
141-         mavenJava(MavenPublication ) {
153+         gpr(MavenPublication ) {
154+ 
142155            from components. java
143156            versionMapping {
144157                usage(' java-api'  ) {
@@ -174,10 +187,12 @@ publishing {
174187    }
175188    repositories {
176189        maven {
177-             //  change URLs to point to your repos, e.g. http://my.org/repo
178-             def  releasesRepoUrl =  " $buildDir  /repos/releases" 
179-             def  snapshotsRepoUrl =  " $buildDir  /repos/snapshots" 
180-             url =  version. endsWith(' SNAPSHOT'  ) ?  snapshotsRepoUrl :  releasesRepoUrl
190+             name =  " GitHubPackages" 
191+             url =  " https://maven.pkg.github.com/pacphi/cf-hoover" 
192+             credentials {
193+                 username =  System . getenv(" GITHUB_ACTOR"  )
194+                 password =  System . getenv(" GITHUB_TOKEN"  )
195+             }
181196        }
182197    }
183198}
0 commit comments