Skip to content

Commit

Permalink
Update gradle wrapper to 8.8
Browse files Browse the repository at this point in the history
Fix #2287
  • Loading branch information
8Keep committed Jun 23, 2024
1 parent 88adea8 commit 19df0e2
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 10 deletions.
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,23 +74,23 @@ task libDist(dependsOn: subprojects.build, description: 'Builds and copies the e
subprojects.each {project ->
if(!project.hasProperty('mainClassName')){
project.tasks.withType(Jar).each {archiveTask ->
if(archiveTask.classifier == "sources"){
if(archiveTask.archiveClassifier == "sources"){
copy {
from archiveTask.archivePath
into sourceFolder
rename {project.name + '-' + archiveTask.classifier +'.'+ archiveTask.extension}
rename {project.name + '-' + archiveTask.archiveClassifier +'.'+ archiveTask.archiveExtension}
}
} else if(archiveTask.classifier == "javadoc"){
} else if(archiveTask.archiveClassifier == "javadoc"){
copy {
from archiveTask.archivePath
into javadocFolder
rename {project.name + '-' + archiveTask.classifier +'.'+ archiveTask.extension}
rename {project.name + '-' + archiveTask.archiveClassifier +'.'+ archiveTask.archiveExtension}
}
} else{
copy {
from archiveTask.archivePath
into libFolder
rename {project.name + '.' + archiveTask.extension}
rename {project.name + '.' + archiveTask.archiveExtension}
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ test {
}

task sourcesJar(type: Jar, dependsOn: classes, description: 'Creates a jar from the source files.') {
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets*.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc, description: 'Creates a jar from the javadoc files.') {
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

Expand Down Expand Up @@ -218,8 +218,8 @@ checkstyleTest {

tasks.withType(Checkstyle) {
reports {
xml.enabled false
html.enabled true
xml.required.set(false)
html.required.set(true)
}
include("**/com/jme3/renderer/**/*.java")
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
3 changes: 3 additions & 0 deletions jme3-android-native/bufferallocator.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ task copyPreCompiledLibsBufferAllocator(type: Copy) {
from file(bufferAllocatorPreCompiledLibsDir)
into file(bufferAllocatorBuildLibsDir)
}
if (skipPrebuildLibraries != "true" && buildNativeProjects != "true") {
copyPreCompiledLibsBufferAllocator.dependsOn(rootProject.extractPrebuiltNatives)
}

// ndkExists is a boolean from the build.gradle in the root project
// buildNativeProjects is a string set to "true"
Expand Down
3 changes: 3 additions & 0 deletions jme3-android-native/decode.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ task copyPreCompiledLibs(type: Copy) {
from sourceDir
into outputDir
}
if (skipPrebuildLibraries != "true" && buildNativeProjects != "true") {
copyPreCompiledLibs.dependsOn(rootProject.extractPrebuiltNatives)
}

// ndkExists is a boolean from the build.gradle in the root project
// buildNativeProjects is a string set to "true"
Expand Down
3 changes: 3 additions & 0 deletions jme3-android-native/openalsoft.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ task copyPreCompiledOpenAlSoftLibs(type: Copy) {
from sourceDir
into outputDir
}
if (skipPrebuildLibraries != "true" && buildNativeProjects != "true") {
copyPreCompiledOpenAlSoftLibs.dependsOn(rootProject.extractPrebuiltNatives)
}

// ndkExists is a boolean from the build.gradle in the root project
// buildNativeProjects is a string set to "true"
Expand Down

0 comments on commit 19df0e2

Please sign in to comment.