Skip to content

Commit

Permalink
Migrate from bintray to github packages
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Apr 6, 2021
1 parent 6a95855 commit 65cb3c5
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 23 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
uploadAllToMaven dist/maven/ https://maven.pkg.github.com/${GITHUB_REPOSITORY} token ${{ secrets.GITHUB_TOKEN }}
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
```
Expand Down
23 changes: 11 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = "jme-effekseer-native"

0 comments on commit 65cb3c5

Please sign in to comment.