File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
src/main/java/org/radarcns/hdfs/util/commandline Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ plugins {
22 id ' java'
33 id ' java-library'
44 id ' application'
5- id ' com.jfrog.bintray' version ' 1.8.1 '
5+ id ' com.jfrog.bintray' version ' 1.8.4 '
66 id ' maven-publish'
77}
88
9393
9494tasks. withType(Tar ){
9595 compression = Compression . GZIP
96- extension = ' tar.gz'
96+ archiveExtension . set( ' tar.gz' )
9797}
9898
9999task downloadDependencies {
@@ -104,18 +104,18 @@ task downloadDependencies {
104104
105105task copyDependencies (type : Copy ) {
106106 from configurations. runtimeClasspath. files
107- into " ${ buildDir} /third-party/"
107+ into " $buildDir /third-party/"
108108}
109109
110110// custom tasks for creating source/javadoc jars
111111task sourcesJar (type : Jar , dependsOn : classes) {
112- classifier = ' sources'
112+ archiveClassifier . set( ' sources' )
113113 from sourceSets. main. allSource
114114 manifest. from sharedManifest
115115}
116116
117117task javadocJar (type : Jar , dependsOn : javadoc) {
118- classifier = ' javadoc'
118+ archiveClassifier . set( ' javadoc' )
119119 from javadoc. destinationDir
120120 manifest. from sharedManifest
121121}
@@ -190,5 +190,5 @@ bintray {
190190}
191191
192192wrapper {
193- gradleVersion ' 5.1 .1'
193+ gradleVersion ' 5.2 .1'
194194}
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =wrapper/dists
3- distributionUrl =https\://services.gradle.org/distributions/gradle-5.1 .1-bin.zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-5.2 .1-bin.zip
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -108,8 +108,8 @@ public InstantiatePluginConverter(String optionName) {
108108 @ Override
109109 public Plugin convert (String value ) {
110110 try {
111- Class cls = Class .forName (value );
112- return (Plugin )cls .newInstance ();
111+ Class <?> cls = Class .forName (value );
112+ return (Plugin )cls .getConstructor (). newInstance ();
113113 } catch (ReflectiveOperationException | ClassCastException ex ) {
114114 throw new ParameterException ("Cannot convert " + value + " to Plugin instance" , ex );
115115 }
You can’t perform that action at this time.
0 commit comments