|
1 | 1 | plugins { |
2 | 2 | `maven-publish` |
| 3 | + `java-platform` |
3 | 4 | } |
4 | 5 |
|
5 | | -version = "1.0.6" |
| 6 | +group = "net.theevilreaper.mycelium.bom" |
| 7 | +version = "1.1.0" |
6 | 8 |
|
7 | | -repositories { |
8 | | - mavenCentral() |
| 9 | +javaPlatform { |
| 10 | + allowDependencies() |
9 | 11 | } |
10 | 12 |
|
11 | | -subprojects { |
12 | | - apply { |
13 | | - plugin<MavenPublishPlugin>() |
| 13 | +dependencies { |
| 14 | + constraints { |
| 15 | + api(libs.microtus) |
| 16 | + api(libs.microtus.testing) |
| 17 | + api(libs.adventure.text.minimessage) |
| 18 | + api(libs.junit.jupiter.api) |
| 19 | + api(libs.junit.jupiter.engine) |
| 20 | + api(libs.mockito.core) |
| 21 | + api(libs.mockito.junit.jupiter) |
14 | 22 | } |
15 | 23 | } |
16 | 24 |
|
17 | | -subprojects { |
18 | | - group = "net.theevilreaper.mycelium.bom" |
19 | | - version = rootProject.version |
20 | 25 |
|
21 | | - repositories { |
22 | | - mavenCentral() |
23 | | - } |
24 | | - |
25 | | - publishing { |
26 | | - publications { |
27 | | - create<MavenPublication>("maven") { |
28 | | - pom { |
29 | | - name.set("${project.name} ${project.version}") |
30 | | - description.set("Bill of materials for the Dungeon project") |
31 | | - developers { |
32 | | - developer { |
33 | | - name.set("OneliteFeather") |
34 | | - contributors { |
35 | | - contributor { |
36 | | - name.set("theEvilReaper") |
37 | | - } |
38 | | - contributor { |
39 | | - name.set("TheMeinerLP") |
40 | | - } |
| 26 | +publishing { |
| 27 | + publications { |
| 28 | + create<MavenPublication>("maven") { |
| 29 | + pom { |
| 30 | + name.set("${project.name} ${project.version}") |
| 31 | + description.set("Bill of materials for the Mycelium project") |
| 32 | + developers { |
| 33 | + developer { |
| 34 | + name.set("OneliteFeather") |
| 35 | + contributors { |
| 36 | + contributor { |
| 37 | + name.set("theEvilReaper") |
| 38 | + } |
| 39 | + contributor { |
| 40 | + name.set("TheMeinerLP") |
41 | 41 | } |
42 | 42 | } |
43 | 43 | } |
44 | | - |
45 | | - issueManagement { |
46 | | - system.set("GitLab") |
47 | | - url.set("https://gitlab.onelitefeather.dev/dungeon/bom/-/issues") |
48 | | - } |
49 | 44 | } |
50 | | - } |
51 | 45 |
|
52 | | - if (System.getenv().containsKey("CI")) { |
53 | | - repositories { |
54 | | - maven { |
55 | | - name = "GitLab" |
56 | | - val ciApiv4Url = System.getenv("CI_API_V4_URL") |
57 | | - val projectId = System.getenv("CI_PROJECT_ID") |
58 | | - url = uri("$ciApiv4Url/projects/$projectId/packages/maven") |
59 | | - credentials(HttpHeaderCredentials::class.java) { |
60 | | - name = "Job-Token" |
61 | | - value = System.getenv("CI_JOB_TOKEN") |
62 | | - } |
63 | | - authentication { |
64 | | - create<HttpHeaderAuthentication>("header") |
65 | | - } |
66 | | - } |
| 46 | + issueManagement { |
| 47 | + system.set("Github") |
| 48 | + url.set("https://github.com/OneLiteFeatherNET/Mycelium-bom/issues") |
67 | 49 | } |
68 | 50 | } |
69 | 51 | } |
|
0 commit comments