-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
61 lines (49 loc) · 1.88 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
buildscript {
repositories {
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
maven { url = 'https://maven.minecraftforge.net' }
maven { url = 'https://maven.parchmentmc.org' }
mavenCentral()
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
classpath group: 'org.parchmentmc', name: 'librarian', version: '1.+'
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
}
}
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'org.parchmentmc.librarian.forgegradle'
apply plugin: 'org.spongepowered.mixin'
apply from: 'gradle/teacon-forge.gradle'
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
// definitions at gradle/teacon-forge.gradle
teacon {
modId = 'nocaet'
modVersion = '1.2.2'
modLicense = 'GPL-3.0'
modGitHubRepo = 'teaconmc/Garlic'
modAuthors = ['IzzelAliz']
modDescription = 'TeaCon Garlic'
platform = 'forge-1.18.2-40.1.0'
parchment = '2022.03.13'
// uncomment these lines if you need
modName = 'TeaCon Garlic' // default to repo name
// modGitHubBranch = 1.18-forge // for referring the license
// modifyMemberAccess = true // for access transformer
useDataGeneration = true // for data generation
// publishTask = shadowJar // for shadow jar or other usages
// lazyTokens = ['minecraft_classpath': { project.configurations.shadow.asPath }] // for runtime tokens
// use './gradlew -q printModMeta > src/main/resources/META-INF/mods.toml' to generate mod meta
}
java {
toolchain.languageVersion = JavaLanguageVersion.of(17)
}
mixin {
add sourceSets.main, "nocaet.refmap.json"
config "nocaet.mixins.json"
}
dependencies {
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
}