diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e43142e..4888c31 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,14 +47,8 @@ jobs: name: maven path: dist/maven - - name: Deploy to bintray + - name: Deploy to github packages if: github.event_name == 'release' run: | source .github/actions/tools/uploadToMaven.sh - if [ "${{ secrets.BINTRAY_MAVEN_REPO }}" = "" ]; - then - echo "Configure the following secrets to enable bintray deployment" - echo "BINTRAY_MAVEN_REPO, BINTRAY_USER, BINTRAY_APIKEY" - else - uploadAllToMaven dist/maven/ https://api.bintray.com/maven/${{ secrets.BINTRAY_MAVEN_REPO }} ${{ secrets.BINTRAY_USER }} ${{ secrets.BINTRAY_APIKEY }} "https://github.com/${GITHUB_REPOSITORY}" "${{ secrets.BINTRAY_LICENSE }}" - fi \ No newline at end of file + uploadAllToMaven dist/maven/ https://maven.pkg.github.com/${GITHUB_REPOSITORY} token ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index 7de0dad..ce63a0d 100644 --- a/README.md +++ b/README.md @@ -19,12 +19,14 @@ Missing features: ## Gradle ```gradle +plugins { + id "io.github.0ffz.github-packages" version "1.2.1" +} repositories { - maven { url 'https://jitpack.io' } - maven { url "https://dl.bintray.com/riccardo/effekseer" } + maven githubPackage.invoke("riccardobl") } dependencies { - implementation 'com.github.riccardobl:jme-effekseerNative:-SNAPSHOT' + implementation 'wf.frk:jme-effekseer-native:0.3' } ``` diff --git a/build.gradle b/build.gradle index 72f2024..46f298d 100644 --- a/build.gradle +++ b/build.gradle @@ -1,21 +1,20 @@ +plugins { + id "io.github.0ffz.github-packages" version "1.2.1" +} + apply plugin: 'maven' apply plugin: 'java-library' - -group = "com.jme.effekseer" +group = "wf.frk" version= project.hasProperty('in_version') ? project.getProperty('in_version') : '-SNAPSHOT' targetCompatibility = '1.8' sourceCompatibility = '1.8' repositories { - jcenter() - maven { - url "https://jitpack.io" - } - maven { - url "https://dl.bintray.com/riccardo/effekseer" - } + mavenCentral() + maven { url "https://jitpack.io" } + maven githubPackage.invoke("riccardobl") } dependencies { @@ -36,9 +35,9 @@ dependencies { compileJava.doLast { def buildDate = new Date().format('yyyy-MM-dd HHmm') - println "Writing jme-effekseerNative.build.date: " + buildDate - new File(destinationDir, "jme-effekseerNative.build.date").text = buildDate - new File(destinationDir, "jme-effekseerNative.build.version").text = version + println "Writing jme-effekseer-native.build.date: " + buildDate + new File(destinationDir, "jme-effekseer-native.build.date").text = buildDate + new File(destinationDir, "jme-effekseer-native.build.version").text = version } task testJar(type: Jar) { diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..e187773 --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +rootProject.name = "jme-effekseer-native" \ No newline at end of file