-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nifty library: bump version to 0.9.20 and update release-notes.md
- Loading branch information
1 parent
2cbcf78
commit 8b6e4a3
Showing
4 changed files
with
488 additions
and
483 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,104 +1,104 @@ | ||
// Note: "common.gradle" in the root project contains additional initialization | ||
// for this project. This initialization is applied in the "build.gradle" | ||
// of the root project. | ||
|
||
plugins { | ||
id 'java-library' | ||
id 'maven-publish' | ||
id 'signing' | ||
} | ||
|
||
description = 'A NiftyGUI library for jMonkeyEngine.' | ||
ext { | ||
artifact = 'jme3-utilities-nifty' | ||
version = jme3utilitiesniftyVersion | ||
baseName = "${artifact}-${version}" // for POM and class JAR | ||
} | ||
|
||
jar { archiveBaseName = project.ext.baseName } | ||
javadocJar { archiveBaseName = project.ext.baseName } | ||
sourcesJar { archiveBaseName = project.ext.baseName } | ||
|
||
dependencies { | ||
api 'com.github.nifty-gui:nifty:1.4.3' | ||
api 'com.github.nifty-gui:nifty-default-controls:1.4.3' | ||
|
||
//api 'com.github.stephengold:jme3-utilities-ui:' + jme3utilitiesuiVersion | ||
api project(':ui') | ||
} | ||
|
||
// publishing tasks | ||
|
||
build.dependsOn('pom', 'pomAsc') | ||
task('pom', type: Copy) { | ||
dependsOn 'generatePomFileForMavenPublication' | ||
from "${buildDir}/publications/maven/pom-default.xml" | ||
into "${buildDir}/libs" | ||
rename 'pom-default.xml', baseName + '.pom' | ||
} | ||
task('pomAsc', type: Copy) { | ||
dependsOn 'signMavenPublication' | ||
from "${buildDir}/publications/maven/pom-default.xml.asc" | ||
into "${buildDir}/libs" | ||
rename 'pom-default.xml.asc', baseName + '.pom.asc' | ||
} | ||
|
||
publishToMavenLocal.doLast { | ||
println 'published to ' + baseName | ||
} | ||
|
||
publishing { | ||
publications { | ||
maven(MavenPublication) { | ||
artifact javadocJar | ||
artifact sourcesJar | ||
artifactId artifact | ||
from components.java | ||
pom { | ||
description = project.description | ||
developers { | ||
developer { | ||
email = 'sgold@sonic.net' | ||
name = 'Stephen Gold' | ||
} | ||
} | ||
licenses { | ||
license { | ||
distribution = 'repo' | ||
name = 'New BSD (3-clause) License' | ||
url = 'https://opensource.org/licenses/BSD-3-Clause' | ||
} | ||
} | ||
name = 'com.github.stephengold:' + artifact | ||
scm { | ||
connection = 'scm:git:git://github.com/stephengold/jme3-utilities.git' | ||
developerConnection = 'scm:git:ssh://github.com:stephengold/jme3-utilities.git' | ||
url = 'https://github.com/stephengold/jme3-utilities/tree/master' | ||
} | ||
url = 'https://github.com/stephengold/jme3-utilities' | ||
} | ||
suppressPomMetadataWarningsFor("apiElements") // Gradle issue #16555 | ||
version project.ext.version | ||
} | ||
} | ||
repositories { | ||
maven { | ||
credentials { | ||
username = project.hasProperty('ossrhUsername') ? ossrhUsername : 'Unknown user' | ||
password = project.hasProperty('ossrhPassword') ? ossrhPassword : 'Unknown password' | ||
} | ||
name = 'OSSRH' | ||
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2' | ||
} | ||
} | ||
} | ||
generateMetadataFileForMavenPublication.dependsOn('pom') | ||
|
||
// signing tasks | ||
|
||
signing { | ||
sign publishing.publications.maven | ||
} | ||
tasks.withType(Sign) { | ||
onlyIf { gradle.rootProject.hasProperty('signing.keyId') } | ||
// Note: "common.gradle" in the root project contains additional initialization | ||
// for this project. This initialization is applied in the "build.gradle" | ||
// of the root project. | ||
|
||
plugins { | ||
id 'java-library' | ||
id 'maven-publish' | ||
id 'signing' | ||
} | ||
|
||
description = 'A NiftyGUI library for jMonkeyEngine.' | ||
ext { | ||
artifact = 'jme3-utilities-nifty' | ||
version = jme3utilitiesniftyVersion | ||
baseName = "${artifact}-${version}" // for POM and class JAR | ||
} | ||
|
||
jar { archiveBaseName = project.ext.baseName } | ||
javadocJar { archiveBaseName = project.ext.baseName } | ||
sourcesJar { archiveBaseName = project.ext.baseName } | ||
|
||
dependencies { | ||
api 'com.github.nifty-gui:nifty:1.4.3' | ||
api 'com.github.nifty-gui:nifty-default-controls:1.4.3' | ||
|
||
api 'com.github.stephengold:jme3-utilities-ui:' + jme3utilitiesuiVersion | ||
//api project(':ui') | ||
} | ||
|
||
// publishing tasks | ||
|
||
build.dependsOn('pom', 'pomAsc') | ||
task('pom', type: Copy) { | ||
dependsOn 'generatePomFileForMavenPublication' | ||
from "${buildDir}/publications/maven/pom-default.xml" | ||
into "${buildDir}/libs" | ||
rename 'pom-default.xml', baseName + '.pom' | ||
} | ||
task('pomAsc', type: Copy) { | ||
dependsOn 'signMavenPublication' | ||
from "${buildDir}/publications/maven/pom-default.xml.asc" | ||
into "${buildDir}/libs" | ||
rename 'pom-default.xml.asc', baseName + '.pom.asc' | ||
} | ||
|
||
publishToMavenLocal.doLast { | ||
println 'published to ' + baseName | ||
} | ||
|
||
publishing { | ||
publications { | ||
maven(MavenPublication) { | ||
artifact javadocJar | ||
artifact sourcesJar | ||
artifactId artifact | ||
from components.java | ||
pom { | ||
description = project.description | ||
developers { | ||
developer { | ||
email = 'sgold@sonic.net' | ||
name = 'Stephen Gold' | ||
} | ||
} | ||
licenses { | ||
license { | ||
distribution = 'repo' | ||
name = 'New BSD (3-clause) License' | ||
url = 'https://opensource.org/licenses/BSD-3-Clause' | ||
} | ||
} | ||
name = 'com.github.stephengold:' + artifact | ||
scm { | ||
connection = 'scm:git:git://github.com/stephengold/jme3-utilities.git' | ||
developerConnection = 'scm:git:ssh://github.com:stephengold/jme3-utilities.git' | ||
url = 'https://github.com/stephengold/jme3-utilities/tree/master' | ||
} | ||
url = 'https://github.com/stephengold/jme3-utilities' | ||
} | ||
suppressPomMetadataWarningsFor("apiElements") // Gradle issue #16555 | ||
version project.ext.version | ||
} | ||
} | ||
repositories { | ||
maven { | ||
credentials { | ||
username = project.hasProperty('ossrhUsername') ? ossrhUsername : 'Unknown user' | ||
password = project.hasProperty('ossrhPassword') ? ossrhPassword : 'Unknown password' | ||
} | ||
name = 'OSSRH' | ||
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2' | ||
} | ||
} | ||
} | ||
generateMetadataFileForMavenPublication.dependsOn('pom') | ||
|
||
// signing tasks | ||
|
||
signing { | ||
sign publishing.publications.maven | ||
} | ||
tasks.withType(Sign) { | ||
onlyIf { gradle.rootProject.hasProperty('signing.keyId') } | ||
} |
Oops, something went wrong.