|
1 | | -pluginManagement { |
| 1 | +plugins { |
| 2 | + id 'org.gradle.toolchains.foojay-resolver-convention' version '0.10.0' |
| 3 | +} |
| 4 | + |
| 5 | +dependencyResolutionManagement { |
2 | 6 | repositories { |
3 | | - gradlePluginPortal() |
| 7 | + // TODO [Gradle9][GradleUtils3] Replace with gradleutils.forgeMaven |
4 | 8 | maven { url = 'https://maven.minecraftforge.net/' } |
| 9 | + mavenCentral() |
5 | 10 | } |
6 | | -} |
7 | 11 |
|
8 | | -plugins { |
9 | | - id 'org.gradle.toolchains.foojay-resolver-convention' version '0.9.0' |
10 | | -} |
| 12 | + //@formatter:off |
| 13 | + versionCatalogs.register('libs') { |
| 14 | + plugin 'modules', 'org.gradlex.extra-java-module-info' version '1.11' |
| 15 | + plugin 'gradleutils', 'net.minecraftforge.gradleutils' version '2.5.1' |
| 16 | + plugin 'licenser', 'net.minecraftforge.licenser' version '1.2.0' |
11 | 17 |
|
12 | | -dependencyResolutionManagement { |
13 | | - versionCatalogs { |
14 | | - libs { |
15 | | - // https://mvnrepository.com/artifact/org.jspecify/jspecify |
16 | | - library('jspecify-annotations', 'org.jspecify', 'jspecify') version '1.0.0' |
17 | | - |
18 | | - // https://mvnrepository.com/artifact/com.google.errorprone/error_prone_core |
19 | | - library('errorprone-core', 'com.google.errorprone', 'error_prone_core') version '2.36.0' |
20 | | - |
21 | | - // https://mvnrepository.com/artifact/com.uber.nullaway/nullaway |
22 | | - library('nullaway', 'com.uber.nullaway', 'nullaway') version '0.12.4' |
23 | | - |
24 | | - // ModLauncher stack |
25 | | - library('modlauncher', 'net.minecraftforge:modlauncher:10.1.1') |
26 | | - library('securemodules', 'net.minecraftforge:securemodules:2.2.21') |
27 | | - library('unsafe', 'net.minecraftforge:unsafe:0.9.2') |
28 | | - |
29 | | - // Generics from lambdas |
30 | | - library('typetools', 'net.jodah:typetools:0.6.3') |
31 | | - |
32 | | - library('nulls', 'org.jetbrains:annotations:23.0.0') |
33 | | - library('jopt-simple', 'net.sf.jopt-simple:jopt-simple:5.0.4') |
34 | | - library('log4j-api', 'org.apache.logging.log4j:log4j-api:2.17.1') |
35 | | - |
36 | | - version('junit', '5.10.1') |
37 | | - library('junit-api', 'org.junit.jupiter', 'junit-jupiter-api').versionRef('junit') |
38 | | - library('junit-engine', 'org.junit.jupiter', 'junit-jupiter-engine').versionRef('junit') |
39 | | - library('junit-platform-launcher', 'org.junit.platform:junit-platform-launcher:1.10.1') |
40 | | - bundle('junit-runtime', ['junit-engine', 'junit-platform-launcher']) |
41 | | - |
42 | | - version('asm', '9.7.1') |
43 | | - library('asm', 'org.ow2.asm', 'asm' ).versionRef('asm') |
44 | | - library('asm-tree', 'org.ow2.asm', 'asm-tree' ).versionRef('asm') |
45 | | - library('asm-commons', 'org.ow2.asm', 'asm-commons').versionRef('asm') |
46 | | - bundle('asm', ['asm', 'asm-tree', 'asm-commons']) |
47 | | - |
48 | | - version('jmh', '1.37') |
49 | | - library('jmh-core', 'org.openjdk.jmh', 'jmh-core') versionRef 'jmh' |
50 | | - library('jmh-annotationProcessor', 'org.openjdk.jmh', 'jmh-generator-annprocess') versionRef 'jmh' |
51 | | - } |
| 18 | + plugin 'errorprone', 'net.ltgt.errorprone' version '4.1.0' |
| 19 | + plugin 'nullaway', 'net.ltgt.nullaway' version '2.2.0' |
| 20 | + |
| 21 | + // https://mvnrepository.com/artifact/org.jspecify/jspecify |
| 22 | + library 'jspecify-annotations', 'org.jspecify', 'jspecify' version '1.0.0' |
| 23 | + |
| 24 | + // https://mvnrepository.com/artifact/com.google.errorprone/error_prone_core |
| 25 | + library 'errorprone-core', 'com.google.errorprone', 'error_prone_core' version '2.36.0' |
| 26 | + |
| 27 | + // https://mvnrepository.com/artifact/com.uber.nullaway/nullaway |
| 28 | + library 'nullaway', 'com.uber.nullaway', 'nullaway' version '0.12.4' |
| 29 | + |
| 30 | + |
| 31 | + /* The rest is for testing */ |
| 32 | + library 'unsafe', 'net.minecraftforge:unsafe:0.9.2' |
| 33 | + |
| 34 | + version 'junit', '5.10.1' |
| 35 | + library 'junit-api', 'org.junit.jupiter', 'junit-jupiter-api' versionRef 'junit' |
| 36 | + library 'junit-engine', 'org.junit.jupiter', 'junit-jupiter-engine' versionRef 'junit' |
| 37 | + library 'junit-platform-launcher', 'org.junit.platform', 'junit-platform-launcher' version '1.10.1' |
| 38 | + bundle 'junit-runtime', ['junit-engine', 'junit-platform-launcher'] |
| 39 | + |
| 40 | + version 'asm', '9.7.1' |
| 41 | + library 'asm', 'org.ow2.asm', 'asm' versionRef 'asm' |
| 42 | + library 'asm-tree', 'org.ow2.asm', 'asm-tree' versionRef 'asm' |
| 43 | + library 'asm-commons', 'org.ow2.asm', 'asm-commons' versionRef 'asm' |
| 44 | + bundle 'asm', ['asm', 'asm-tree', 'asm-commons'] |
| 45 | + |
| 46 | + version 'jmh', '1.37' |
| 47 | + library 'jmh-core', 'org.openjdk.jmh', 'jmh-core' versionRef 'jmh' |
| 48 | + library 'jmh-annotationProcessor', 'org.openjdk.jmh', 'jmh-generator-annprocess' versionRef 'jmh' |
52 | 49 | } |
| 50 | + //@formatter:on |
53 | 51 | } |
54 | 52 |
|
55 | 53 | enableFeaturePreview 'TYPESAFE_PROJECT_ACCESSORS' |
|
0 commit comments