Skip to content

Commit 9329ffa

Browse files
authored
Merge pull request #26
ci/add-publish-yml
2 parents 9203f2a + b9930c0 commit 9329ffa

File tree

9 files changed

+52
-25
lines changed

9 files changed

+52
-25
lines changed

.github/workflows/publish-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Publish Dokka Docs
22

33
on:
4-
push:
5-
branches:
6-
- version/1.21
4+
# push:
5+
# branches:
6+
# - version/1.21
77
workflow_dispatch:
88

99
permissions:

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish to Maven
2+
3+
on:
4+
push:
5+
branches:
6+
- version/1.21
7+
8+
env:
9+
MAVEN_URL: ${{ secrets.REPO_PUBLISH_URL }}
10+
MAVEN_USERNAME: ${{ secrets.REPO_PUBLISH_USERNAME }}
11+
MAVEN_PASSWORD: ${{ secrets.REPO_PUBLISH_TOKEN }}
12+
13+
jobs:
14+
publish:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout Repository
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- name: Setup JDK
22+
uses: actions/setup-java@v4
23+
with:
24+
distribution: 'graalvm'
25+
java-version: '21'
26+
- name: Build with Gradle
27+
run: ./gradlew shadowJar
28+
- name: Publish to Maven
29+
run: ./gradlew publish

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle.kts

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import org.jetbrains.dokka.gradle.engine.parameters.VisibilityModifier
2-
31
plugins {
42
id("io.papermc.paperweight.userdev") version "2.0.0-beta.14" apply false
5-
alias(libs.plugins.dokka)
3+
// alias(libs.plugins.dokka)
64
}
75

86
allprojects {
@@ -15,14 +13,14 @@ allprojects {
1513
// }
1614
}
1715

18-
dependencies {
19-
dokka(project(":surf-api-core:surf-api-core-api"))
20-
dokka(project(":surf-api-bukkit:surf-api-bukkit-api"))
21-
dokka(project(":surf-api-velocity:surf-api-velocity-api"))
22-
}
23-
24-
dokka {
25-
dokkaSourceSets.configureEach {
26-
documentedVisibilities = setOf(VisibilityModifier.Public, VisibilityModifier.Protected)
27-
}
28-
}
16+
//dependencies {
17+
// dokka(project(":surf-api-core:surf-api-core-api"))
18+
// dokka(project(":surf-api-bukkit:surf-api-bukkit-api"))
19+
// dokka(project(":surf-api-velocity:surf-api-velocity-api"))
20+
//}
21+
//
22+
//dokka {
23+
// dokkaSourceSets.configureEach {
24+
// documentedVisibilities = setOf(VisibilityModifier.Public, VisibilityModifier.Protected)
25+
// }
26+
//}

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ gson = "2.11.0"
3939
commons-lang3 = "3.17.0"
4040
commons-text = "1.13.0"
4141
commons-math4-core = "4.0-beta1"
42-
plugin-yml-paper = "0.6.0"
42+
plugin-yml-paper = "0.7.0"
4343
spongepowered-math = "2.0.1"
4444
fastutil = "8.5.15"
4545
okhttp = "5.0.0-alpha.14"
@@ -147,12 +147,12 @@ kotlin-serialization = { module = "org.jetbrains.kotlin.plugin.serialization:org
147147
maven-repo-auth = { module = "org.hibernate.build.maven-repo-auth:org.hibernate.build.maven-repo-auth.gradle.plugin", version.ref = "maven-repo-auth" }
148148
shadow-gradle-plugin = { module = "com.gradleup.shadow:shadow-gradle-plugin", version.ref = "shadow-gradle-plugin" }
149149
ksp-gradle-plugin = { module = "com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin", version.ref = "ksp-gradle-plugin" }
150-
plugin-yml-paper-gradle-plugin = { module = "net.minecrell.plugin-yml.bukkit:net.minecrell.plugin-yml.bukkit.gradle.plugin", version.ref = "plugin-yml-paper" }
150+
plugin-yml-paper-gradle-plugin = { module = "de.eldoria.plugin-yml.paper:de.eldoria.plugin-yml.paper.gradle.plugin", version.ref = "plugin-yml-paper" }
151151
run-paper-gradle-plugin = { module = "xyz.jpenilla.run-paper:xyz.jpenilla.run-paper.gradle.plugin", version.ref = "run-paper-gradle-plugin" }
152152
dokka-gradle-plugin = { module = "org.jetbrains.dokka:org.jetbrains.dokka.gradle.plugin", version.ref = "dokka" }
153153

154154
[plugins]
155-
plugin-yml-paper = { id = "net.minecrell.plugin-yml.paper", version.ref = "plugin-yml-paper" }
155+
plugin-yml-paper = { id = "de.eldoria.plugin-yml.paper", version.ref = "plugin-yml-paper" }
156156
run-paper = { id = "xyz.jpenilla.run-paper", version.ref = "run-paper-gradle-plugin" }
157157
maven-repo-auth = { id = "org.hibernate.build.maven-repo-auth", version.ref = "maven-repo-auth" }
158158
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ include(":surf-api-velocity:surf-api-velocity-api")
2121
include(":surf-api-velocity:surf-api-velocity-server")
2222

2323
include("surf-api-standalone")
24+
include("surf-api-gradle-plugin")
2425

2526
if (!ci) {
2627
include(":surf-api-bukkit:surf-api-bukkit-plugin-test")
2728
// include("surf-api-generator")
2829
include("surf-api-modern-generator")
29-
include("surf-api-gradle-plugin")
3030
}

surf-api-bukkit/surf-api-bukkit-api/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
`core-convention`
3-
alias(libs.plugins.dokka)
3+
// alias(libs.plugins.dokka)
44
}
55

66
dependencies {

surf-api-core/surf-api-core-api/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
`core-convention`
3-
alias(libs.plugins.dokka)
3+
// alias(libs.plugins.dokka)
44
}
55

66
dependencies {

surf-api-velocity/surf-api-velocity-api/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
`core-convention`
3-
alias(libs.plugins.dokka)
3+
// alias(libs.plugins.dokka)
44
}
55

66
dependencies {

0 commit comments

Comments
 (0)