Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Enforce Java version during publish #224

Merged
merged 2 commits into from
Oct 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ subprojects {
apply plugin: 'java'
apply plugin: 'signing'


project.tasks['classes'].dependsOn(checkJavaVersion)


artifactName = artifactName ?: project.name

task sourcesJar(type: Jar, dependsOn: classes) {
Expand Down Expand Up @@ -132,6 +128,10 @@ subprojects {
logger.info("artifactName: $artifactName")
}
}

if(project.tasks.findByName('generateMetadataFileForMavenJavaPublication')) {
project.tasks['generateMetadataFileForMavenJavaPublication'].dependsOn(checkJavaVersion)
}
}
}

Expand Down
2 changes: 2 additions & 0 deletions publishAll.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ function publish {
fi
}

./gradlew checkJavaVersion

publish
publish "-PANDROID"
publish "-PJS"