forked from controlsfx/controlsfx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc172e7
commit 0a1c8a4
Showing
5 changed files
with
65 additions
and
76 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 |
---|---|---|
|
@@ -40,33 +40,12 @@ jobs: | |
Xvfb -ac :90 -screen 0 1280x1024x24 > /dev/null 2>&1 & | ||
./gradlew build test | ||
- name: Release to Maven Central | ||
- name: Release to GithubPackages | ||
id: deploy | ||
run: | | ||
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -i \ | ||
-PsonatypeUsername=$SONATYPE_USERNAME -PsonatypePassword=$SONATYPE_PASSWORD -Ptransifex.api=$TRANSIFEX_API \ | ||
-Psigning.keyId=$GPG_KEYNAME -Psigning.password=$GPG_PASSPHRASE -Psigning.secretKeyRingFile=$HOME/.gnupg/secring.gpg \ | ||
-Dorg.gradle.internal.publish.checksums.insecure=true | ||
./gradlew publishAllPublicationsToGitHubPackagesRepository | ||
echo ::set-output name=exit_code::$? | ||
env: | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
TRANSIFEX_API: ${{ secrets.TRANSIFEX_API }} | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
GPG_KEYNAME: ${{ secrets.GPG_KEYNAME }} | ||
- name: Commit next development version | ||
if: steps.deploy.outputs.exit_code == 0 | ||
run: | | ||
git config --global user.name "abhinayagarwal" | ||
git config --global user.email "[email protected]" | ||
TAG=${GITHUB_REF/refs\/tags\//} | ||
newVersion=${TAG%.*}.$((${TAG##*.} + 1)) # Update version by 1 | ||
sed -i "0,/^controlsfx_version = $TAG/s//controlsfx_version = $newVersion-SNAPSHOT/" gradle.properties | ||
git commit gradle.properties -m "Prepare development of $newVersion" | ||
git push https://abhinayagarwal:[email protected]/$GITHUB_REPOSITORY HEAD:master | ||
env: | ||
PAT: ${{ secrets.PAT }} | ||
- name: Update Javadocs | ||
if: steps.deploy.outputs.exit_code == 0 | ||
|
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,4 +1,4 @@ | ||
group = org.controlsfx | ||
group = org.controlsfxjabref | ||
controlsfx_version = 11.1.3-SNAPSHOT | ||
fxsampler_version = 1.0.12-SNAPSHOT | ||
javafx_version = 17 |
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 |
---|---|---|
|
@@ -7,57 +7,69 @@ signing { | |
} | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
from components.java | ||
afterEvaluate { | ||
artifact sourceJar | ||
artifact javadocJar | ||
|
||
repositories { | ||
maven { | ||
name = "GitHubPackages" | ||
url = "https://maven.pkg.github.com/jabref/controlsfx" | ||
credentials { | ||
username = System.getenv("GITHUB_ACTOR") | ||
password = System.getenv("GITHUB_TOKEN") | ||
} | ||
} | ||
|
||
versionMapping { | ||
usage('java-api') { | ||
fromResolutionOf('runtimeClasspath') | ||
} | ||
usage('java-runtime') { | ||
fromResolutionResult() | ||
publications { | ||
mavenJava(MavenPublication) { | ||
from components.java | ||
afterEvaluate { | ||
artifact sourceJar | ||
artifact javadocJar | ||
} | ||
} | ||
|
||
pom { | ||
name = 'ControlsFX' | ||
description = 'High quality UI controls and other tools to complement the core JavaFX distribution' | ||
url = 'http://www.controlsfx.org/' | ||
licenses { | ||
license { | ||
name = 'The 3-Clause BSD License' | ||
url = 'http://www.opensource.org/licenses/bsd-license.php' | ||
distribution = 'repo' | ||
versionMapping { | ||
usage('java-api') { | ||
fromResolutionOf('runtimeClasspath') | ||
} | ||
} | ||
developers { | ||
developer { | ||
name = 'Jonathan Giles' | ||
email = '[email protected]' | ||
roles = [ | ||
'author', | ||
'developer' | ||
] | ||
usage('java-runtime') { | ||
fromResolutionResult() | ||
} | ||
} | ||
scm { | ||
connection = 'scm:git:https://github.com/controlsfx/controlsfx' | ||
developerConnection = 'scm:git:ssh://[email protected]/controlsfx/controlsfx' | ||
url = 'https://github.com/controlsfx/controlsfx' | ||
} | ||
|
||
// Remove classifier for JavaFX dependencies | ||
withXml { | ||
Node pomNode = asNode() | ||
pomNode.dependencies.'*'.findAll() { | ||
it.groupId.text() == 'org.openjfx' | ||
}.each { | ||
it.parent().remove(it) | ||
pom { | ||
name = 'ControlsFX' | ||
description = 'High quality UI controls and other tools to complement the core JavaFX distribution' | ||
url = 'http://www.controlsfx.org/' | ||
licenses { | ||
license { | ||
name = 'The 3-Clause BSD License' | ||
url = 'http://www.opensource.org/licenses/bsd-license.php' | ||
distribution = 'repo' | ||
} | ||
} | ||
developers { | ||
developer { | ||
name = 'Jonathan Giles' | ||
email = '[email protected]' | ||
roles = [ | ||
'author', | ||
'developer' | ||
] | ||
} | ||
} | ||
scm { | ||
connection = 'scm:git:https://github.com/jabref/controlsfx' | ||
developerConnection = 'scm:git:ssh://[email protected]/jabref/controlsfx' | ||
url = 'https://github.com/jabref/controlsfx' | ||
} | ||
|
||
// Remove classifier for JavaFX dependencies | ||
withXml { | ||
Node pomNode = asNode() | ||
pomNode.dependencies.'*'.findAll() { | ||
it.groupId.text() == 'org.openjfx' | ||
}.each { | ||
it.parent().remove(it) | ||
} | ||
} | ||
} | ||
} | ||
|