1- apply plugin : ' java'
1+ plugins {
2+ id " java-library"
3+ }
24apply plugin : ' jacoco'
35
46sourceCompatibility = 1.8
57targetCompatibility = 1.8
68
79dependencies {
8- compile ' com.google.code.gson:gson:2.10.1'
9- compile ' com.squareup.okhttp3:okhttp:4.12.0'
10- compile ' com.squareup.okhttp3:logging-interceptor:4.12.0'
10+ api ' com.google.code.gson:gson:2.10.1'
11+ api ' com.squareup.okhttp3:okhttp:4.12.0'
12+ api ' com.squareup.okhttp3:logging-interceptor:4.12.0'
1113
12- testCompile ' junit:junit:4.13.1'
13- testCompile ' nl.jqno.equalsverifier:equalsverifier:3.1.13'
14- testCompile ' org.reflections:reflections:0.9.12'
14+ testImplementation ' junit:junit:4.13.1'
15+ testImplementation ' nl.jqno.equalsverifier:equalsverifier:3.1.13'
16+ testImplementation ' org.reflections:reflections:0.9.12'
1517}
1618
1719jar {
@@ -47,7 +49,6 @@ tasks.withType(Test).configureEach {
4749 }
4850}
4951
50-
5152tasks. register(' prTest' , Test ) {
5253 // TODO move "functional" tests into specific dir and exclude it
5354 exclude ' **/Base64Test.class'
@@ -57,10 +58,4 @@ tasks.register('prTest', Test) {
5758 exclude ' **/UpdatesListenerTest.class'
5859}
5960
60- task fatJar (type : Jar ) {
61- baseName = rootProject. name + ' -full'
62- from { configurations. compile. collect { it. isDirectory() ? it : zipTree(it) } }
63- with jar
64- }
65-
66- apply from : rootProject. file(' gradle/gradle-mvn-push.gradle' )
61+ apply from : rootProject. file(' gradle/gradle-publish-plugin.gradle' )
0 commit comments