|
1 | | -import net.civmc.civgradle.common.util.civRepo |
| 1 | +import net.civmc.civgradle.CivGradleExtension |
2 | 2 |
|
3 | 3 | plugins { |
4 | | - `java-library` |
5 | | - `maven-publish` |
6 | | - id("net.civmc.civgradle.plugin") version "1.0.0-SNAPSHOT" |
7 | | -} |
8 | | - |
9 | | -// Temporary hack: |
10 | | -// Remove the root build directory |
11 | | -gradle.buildFinished { |
12 | | - project.buildDir.deleteRecursively() |
13 | | -} |
14 | | - |
15 | | -allprojects { |
16 | | - group = "net.civmc.factorymod" |
17 | | - version = "3.0.2" |
18 | | - description = "FactoryMod" |
| 4 | + id("net.civmc.civgradle") version "2.+" apply false |
19 | 5 | } |
20 | 6 |
|
21 | 7 | subprojects { |
22 | | - apply(plugin = "net.civmc.civgradle.plugin") |
23 | 8 | apply(plugin = "java-library") |
24 | 9 | apply(plugin = "maven-publish") |
| 10 | + apply(plugin = "net.civmc.civgradle") |
25 | 11 |
|
26 | | - java { |
27 | | - toolchain { |
28 | | - languageVersion.set(JavaLanguageVersion.of(17)) |
29 | | - } |
| 12 | + configure<CivGradleExtension> { |
| 13 | + pluginName = project.property("pluginName") as String |
30 | 14 | } |
31 | 15 |
|
32 | 16 | repositories { |
33 | 17 | mavenCentral() |
34 | | - civRepo("CivMC/CivModCore") |
35 | | - civRepo("CivMC/NameLayer") |
36 | | - civRepo("CivMC/Citadel") |
37 | | - } |
| 18 | + maven("https://repo.civmc.net/repository/maven-public") |
| 19 | + maven("https://repo.aikar.co/content/groups/aikar/") |
| 20 | + maven("https://libraries.minecraft.net") |
38 | 21 |
|
39 | | - publishing { |
40 | | - repositories { |
41 | | - maven { |
42 | | - name = "GitHubPackages" |
43 | | - url = uri("https://maven.pkg.github.com/CivMC/FactoryMod") |
44 | | - credentials { |
45 | | - username = System.getenv("GITHUB_ACTOR") |
46 | | - password = System.getenv("GITHUB_TOKEN") |
47 | | - } |
48 | | - } |
49 | | - } |
50 | | - publications { |
51 | | - register<MavenPublication>("gpr") { |
52 | | - from(components["java"]) |
53 | | - } |
54 | | - } |
| 22 | + maven("https://jitpack.io") |
55 | 23 | } |
56 | 24 | } |
0 commit comments