mirror of
https://github.com/architectury/architectury-plugin.git
synced 2026-03-28 20:27:01 -05:00
Migrate to my maven
This commit is contained in:
7
.github/workflows/gradle.yml
vendored
7
.github/workflows/gradle.yml
vendored
@@ -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 }}
|
||||
7
.github/workflows/snapshot.yml
vendored
7
.github/workflows/snapshot.yml
vendored
@@ -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}}
|
||||
30
build.gradle
30
build.gradle
@@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user