rename extension names, add publishing
All checks were successful
Publish to snapshot maven / build (push) Successful in 49s
All checks were successful
Publish to snapshot maven / build (push) Successful in 49s
This commit is contained in:
parent
d6c5c01d4d
commit
4ce6722ae1
23
.forgejo/workflows/publish.yml
Normal file
23
.forgejo/workflows/publish.yml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
name: Publish to snapshot maven
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'mistress'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: https://github.com/actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: 21
|
||||||
|
- uses: https://github.com/gradle/actions/setup-gradle@v3
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
chmod +x ./gradlew
|
||||||
|
./gradlew :publishMavenJavaPublicationToFrogMCSnapshotsMavenRepository \
|
||||||
|
-PFrogMCSnapshotsMavenUsername=${{ secrets.MAVEN_PUSH_USER }} \
|
||||||
|
-PFrogMCSnapshotsMavenPassword=${{ secrets.MAVEN_PUSH_TOKEN }}
|
|
@ -1,5 +1,6 @@
|
||||||
plugins {
|
plugins {
|
||||||
java
|
java
|
||||||
|
`maven-publish`
|
||||||
id("dev.frogmc.phytotelma") version "0.0.1-SNAPSHOT"
|
id("dev.frogmc.phytotelma") version "0.0.1-SNAPSHOT"
|
||||||
id("io.freefair.lombok") version "8.+"
|
id("io.freefair.lombok") version "8.+"
|
||||||
}
|
}
|
||||||
|
@ -31,3 +32,32 @@ tasks.processResources {
|
||||||
tasks.runClient {
|
tasks.runClient {
|
||||||
classpath(sourceSets.test.get().runtimeClasspath)
|
classpath(sourceSets.test.get().runtimeClasspath)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
create<MavenPublication>("mavenJava") {
|
||||||
|
artifactId = "frogloader"
|
||||||
|
from(components["java"])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = "FrogMCSnapshotsMaven"
|
||||||
|
url = uri("https://maven.frogmc.dev/snapshots")
|
||||||
|
credentials(PasswordCredentials::class)
|
||||||
|
authentication {
|
||||||
|
create<BasicAuthentication>("basic")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
maven {
|
||||||
|
name = "FrogMCReleasesMaven"
|
||||||
|
url = uri("https://maven.frogmc.dev/releases")
|
||||||
|
credentials(PasswordCredentials::class)
|
||||||
|
authentication {
|
||||||
|
create<BasicAuthentication>("basic")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -22,11 +22,11 @@ client = [
|
||||||
server = [
|
server = [
|
||||||
"dev.frogmc.froglib.resources.impl.ResourceLoaderServer"
|
"dev.frogmc.froglib.resources.impl.ResourceLoaderServer"
|
||||||
]
|
]
|
||||||
mixin_config = [
|
mixin = [
|
||||||
"froglib.branding.mixins.json",
|
"froglib.branding.mixins.json",
|
||||||
"froglib.entrypoints.mixins.json",
|
"froglib.entrypoints.mixins.json",
|
||||||
"froglib.events.mixins.json",
|
"froglib.events.mixins.json",
|
||||||
"froglib.resources.mixins.json",
|
"froglib.resources.mixins.json",
|
||||||
"froglib.keybinds.mixins.json"
|
"froglib.keybinds.mixins.json"
|
||||||
]
|
]
|
||||||
frog_aw = "froglib.accesswidener"
|
accesswidener = "froglib.accesswidener"
|
||||||
|
|
Loading…
Reference in a new issue