Migrate to my maven

This commit is contained in:
shedaniel
2021-02-14 22:23:36 +08:00
parent c9abaea8ae
commit 497c183af5
3 changed files with 15 additions and 29 deletions

View File

@@ -16,8 +16,7 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Upload to Bintray
run: ./gradlew bintrayUpload
- name: Upload to Maven
run: ./gradlew publish
env:
BINTRAY_USER: shedaniel
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}

View File

@@ -14,9 +14,8 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Upload to Bintray
run: ./gradlew bintrayUpload
- name: Upload to Maven
run: ./gradlew publish
env:
BINTRAY_USER: shedaniel
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
MAVEN_PASS: ${{ secrets.MAVEN_PASS }}
PR_NUM: ${{github.event.number}}

View File

@@ -1,10 +1,8 @@
plugins {
id "org.jetbrains.kotlin.jvm" version "1.3.72"
id "com.jfrog.bintray" version "1.8.5"
id "java"
id "idea"
id "eclipse"
id "maven"
id "maven-publish"
}
@@ -97,25 +95,6 @@ task sourcesJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allSource
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_KEY')
publications = ["MyPublication"]
publish = true
pkg {
repo = "cloth"
name = "architect-plugin"
userOrg = "shedaniel"
licenses = ["MIT"]
version {
name = project.version
vcsTag = project.version
released = new Date()
vcsUrl = 'https://github.com/shedaniel/architect-plugin.git'
}
}
}
publishing {
publications {
MyPublication(MavenPublication) {
@@ -128,5 +107,14 @@ publishing {
}
repositories {
if (System.getenv("MAVEN_PASS") != null) {
maven {
url = "https://deploy.shedaniel.me/"
credentials {
username = "shedaniel"
password = System.getenv("MAVEN_PASS")
}
}
}
}
}