mirror of
https://github.com/BlueMap-Minecraft/BlueMapAPI.git
synced 2024-11-23 10:45:47 +01:00
Publish to BlueColored Maven Repo
This commit is contained in:
parent
e7e32301f2
commit
baeef5994e
2
.github/workflows/gradle.yml
vendored
2
.github/workflows/gradle.yml
vendored
@ -14,7 +14,7 @@ jobs:
|
|||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: 11
|
java-version: 16
|
||||||
cache: 'gradle'
|
cache: 'gradle'
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew clean build test
|
run: ./gradlew clean build test
|
||||||
|
26
.github/workflows/publish.yml
vendored
Normal file
26
.github/workflows/publish.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: Publish
|
||||||
|
|
||||||
|
on:
|
||||||
|
- workflow_dispatch
|
||||||
|
- release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
fetch-depth: 0 # needed for versioning
|
||||||
|
- name: Set up Java
|
||||||
|
uses: actions/setup-java@v3
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: 16
|
||||||
|
cache: 'gradle'
|
||||||
|
- name: Build with Gradle
|
||||||
|
run: ./gradlew publish
|
||||||
|
env:
|
||||||
|
bluecoloredUsername: ${{ secrets.BLUECOLORED_USERNAME }}
|
||||||
|
bluecoloredPassword: ${{ secrets.BLUECOLORED_PASSWORD }}
|
@ -89,6 +89,8 @@ tasks.javadoc {
|
|||||||
"https://javadoc.io/doc/com.flowpowered/flow-math/1.0.3/",
|
"https://javadoc.io/doc/com.flowpowered/flow-math/1.0.3/",
|
||||||
"https://javadoc.io/doc/com.google.code.gson/gson/2.8.0/",
|
"https://javadoc.io/doc/com.google.code.gson/gson/2.8.0/",
|
||||||
)
|
)
|
||||||
|
if (JavaVersion.current().isJava9Compatible)
|
||||||
|
addBooleanOption("html5", true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -106,6 +108,20 @@ tasks.processResources {
|
|||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = "bluecolored"
|
||||||
|
|
||||||
|
val releasesRepoUrl = "https://repo.bluecolored.de/releases"
|
||||||
|
val snapshotsRepoUrl = "https://repo.bluecolored.de/snapshots"
|
||||||
|
url = uri(if (version == lastVersion) releasesRepoUrl else snapshotsRepoUrl)
|
||||||
|
|
||||||
|
credentials(PasswordCredentials::class)
|
||||||
|
authentication {
|
||||||
|
create<BasicAuthentication>("basic")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("maven") {
|
create<MavenPublication>("maven") {
|
||||||
groupId = project.group.toString()
|
groupId = project.group.toString()
|
||||||
|
Loading…
Reference in New Issue
Block a user