@@ -4,16 +4,12 @@ buildscript {
44 repositories {
55 mavenCentral()
66 }
7- dependencies {
8- classpath ' org.ajoberstar:gradle-git:1.1.0'
9- }
107}
118
129plugins {
1310 id ' java-library'
1411 id ' maven-publish'
1512 id " signing"
16- id " org.ajoberstar.github-pages" version " 1.7.2"
1713}
1814
1915def getProperty = { property ->
@@ -30,21 +26,17 @@ repositories {
3026group = " com.pusher"
3127version = " 1.3.3"
3228description = " Pusher HTTP Client"
33- sourceCompatibility = " 1.8"
34- targetCompatibility = " 1.8"
3529
36- ext. sharedManifest = manifest {
37- attributes(
38- ' Created-By' : ' Pusher' ,
39- ' Implementation-Vendor' : ' Pusher' ,
40- ' Implementation-Title' : ' Pusher HTTP Java' ,
41- ' Implementation-Version' : version
42- )
30+ java {
31+ sourceCompatibility = JavaVersion . VERSION_11
32+ targetCompatibility = JavaVersion . VERSION_11
33+ withSourcesJar()
34+ withJavadocJar()
4335}
4436
4537dependencies {
4638 implementation ' org.apache.httpcomponents:httpclient:4.5.13'
47- implementation ' org.asynchttpclient:async-http-client:2.12.3 '
39+ implementation ' org.asynchttpclient:async-http-client:3.0.1 '
4840 implementation ' com.google.code.gson:gson:2.8.9'
4941 testImplementation ' org.apache.httpcomponents:httpclient:4.5.13'
5042 testImplementation ' org.hamcrest:hamcrest-all:1.3'
@@ -66,42 +58,13 @@ javadoc {
6658
6759jar {
6860 duplicatesStrategy = DuplicatesStrategy . EXCLUDE
69- manifest = project. manifest {
70- from sharedManifest
71- }
72- }
73-
74- task sourcesJar (type : Jar , dependsOn : classes) {
75- archiveClassifier. set(' sources' )
76- from sourceSets. main. allSource
77- }
78- assemble. dependsOn sourcesJar
79-
80-
81- task javadocJar (type : Jar , dependsOn : javadoc) {
82- archiveClassifier. set(' javadoc' )
83- from javadoc. destinationDir
84- }
85- assemble. dependsOn javadocJar
86-
87- artifacts {
88- archives jar, sourcesJar, javadocJar
89- }
90-
91- java {
92- withSourcesJar()
93- withJavadocJar()
94- }
95-
96- githubPages {
97- repoUri = ' https://github.com/pusher/pusher-http-java.git'
98- pages {
99- from javadoc. outputs. files
100- }
101- commitMessage = " JavaDoc gh-pages for ${ version} "
102- credentials {
103- username = { getProperty(" github.username" ) }
104- password = { getProperty(" github.password" ) }
61+ manifest {
62+ attributes(
63+ ' Created-By' : ' Pusher' ,
64+ ' Implementation-Vendor' : ' Pusher' ,
65+ ' Implementation-Title' : ' Pusher HTTP Java' ,
66+ ' Implementation-Version' : version
67+ )
10568 }
10669}
10770
0 commit comments