forked from teaconmc/PowerTool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
67 lines (57 loc) · 2.12 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
62
63
64
65
66
67
buildscript {
repositories {
// These repositories are only for Gradle plugins, put any other repositories in the repository block further below
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 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
classpath group: 'org.parchmentmc', name: 'librarian', version: '1.+'
}
}
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)
}
teacon {
modId = 'powertool'
modVersion = '1.2.10'
modLicense = 'GPL-3.0'
modGitHubRepo = 'teaconmc/PowerTool'
modAuthors = ['IzzelAliz']
modDescription = 'PowerTool by TeaCon'
platform = 'forge-1.19.4-45.0.64'
// uncomment these lines if you need
modName = 'PowerTool' // 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
}
mixin {
add sourceSets.main, "powertool.refmap.json"
config "powertool.mixins.json"
}
repositories {
maven {
name = "Curse maven"
url = "https://cursemaven.com"
content {
includeGroup "curse.maven"
}
}
}
dependencies {
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
implementation fg.deobf("curse.maven:the-one-probe-245211:4442439")
}