1- import org.apache.tools.ant.filters.ReplaceTokens
2-
3- buildscript {
4- repositories {
5- mavenCentral()
6- }
7- dependencies {
8- classpath ' org.ajoberstar:gradle-git:1.1.0'
9- }
10- }
11-
121plugins {
132 id " eclipse"
143 id " jacoco"
154 id " java-library"
165 id " maven-publish"
17- id " org.ajoberstar.github-pages" version " 1.7.2"
18- id " signing"
19- }
20-
21- def getProperty = { property ->
22- if (! project. hasProperty(property)) {
23- throw new GradleException (" ${ property} property must be set" )
24- }
25- return project. property(property)
266}
277
288group = " com.pusher"
29- version = " 2.4.4 "
9+ version = " 2.4.5 "
3010sourceCompatibility = " 1.8"
3111targetCompatibility = " 1.8"
3212
@@ -55,20 +35,17 @@ dependencies {
5535 testImplementation " com.google.truth:truth:1.0.1"
5636}
5737
38+ import org.apache.tools.ant.filters.ReplaceTokens
5839
5940processResources {
6041 filter(ReplaceTokens , tokens : [
6142 version : project. version
6243 ])
6344}
6445
65-
6646javadoc {
67- /* info for JavaDoc options http://docs.oracle.com/javase/6/docs/technotes/tools/windows/javadoc.html#overviewcomment */
6847 title " Pusher Java Websocket API"
6948 options. overview = file(" src/main/javadoc/overview.html" )
70- // uncomment this to use the custom javadoc styles
71- // options.stylesheetFile = file("src/main/javadoc/css/styles.css")
7249 exclude " com/pusher/client/channel/impl/*"
7350 exclude " com/pusher/client/connection/impl/*"
7451 exclude " com/pusher/client/connection/websocket/*"
@@ -79,7 +56,6 @@ javadoc {
7956 options. linkSource = true
8057}
8158
82-
8359jar {
8460 manifest = project. manifest {
8561 from sharedManifest
@@ -97,32 +73,18 @@ task fatJar(type: Jar, dependsOn: configurations.runtimeClasspath) {
9773}
9874assemble. dependsOn fatJar
9975
100-
10176task sourcesJar (type : Jar , dependsOn : classes) {
10277 archiveClassifier. set(' sources' )
10378 from sourceSets. main. allSource
10479}
10580assemble. dependsOn sourcesJar
10681
107-
10882task javadocJar (type : Jar , dependsOn : javadoc) {
10983 archiveClassifier. set(' javadoc' )
11084 from javadoc. destinationDir
11185}
11286assemble. dependsOn javadocJar
11387
114- githubPages {
115- repoUri = ' https://github.com/pusher/pusher-websocket-java.git'
116- pages {
117- from javadoc. outputs. files
118- }
119- commitMessage = " JavaDoc gh-pages for ${ version} "
120- credentials {
121- username = { getProperty(" github.username" ) }
122- password = { getProperty(" github.password" ) }
123- }
124- }
125-
12688artifacts {
12789 archives jar, fatJar, sourcesJar, javadocJar
12890}
@@ -136,7 +98,6 @@ publishing {
13698 publications {
13799 mavenJava(MavenPublication ) {
138100 artifactId = ' pusher-java-client'
139-
140101 from components. java
141102 pom {
142103 name = ' Pusher Java Client Library'
@@ -187,10 +148,6 @@ publishing {
187148 }
188149}
189150
190- signing {
191- sign publishing. publications. mavenJava
192- }
193-
194151jacoco {
195152 toolVersion = " 0.8.8"
196153}
@@ -201,9 +158,8 @@ jacocoTestReport {
201158 reports. csv. required = false
202159}
203160
204- // Test Logging - https://stackoverflow.com/a/42425815/2623314
205161test {
206162 testLogging {
207163 showStandardStreams = true
208164 }
209- }
165+ }
0 commit comments