Skip to content

Commit

Permalink
[JAVA]: Fix unknown property error for gradle build (OpenAPITools#19933)
Browse files Browse the repository at this point in the history
* Replace classifier with archiveClassifier

* Regenerate samples by script
  • Loading branch information
HeneryHawk authored Oct 23, 2024
1 parent f576f05 commit 21093b7
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ if(hasProperty('target') && target == 'android') {

task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
archiveClassifier = 'sources'
}

artifacts {
Expand Down Expand Up @@ -97,12 +97,12 @@ if(hasProperty('target') && target == 'android') {
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ task execute(type:JavaExec) {
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

Expand Down
4 changes: 2 additions & 2 deletions samples/client/echo_api/java/native/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ task execute(type:JavaExec) {
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/java/native-async/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ task execute(type:JavaExec) {
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/java/native-jakarta/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ task execute(type:JavaExec) {
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/java/native/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ task execute(type:JavaExec) {
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

Expand Down

0 comments on commit 21093b7

Please sign in to comment.