-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.gradle
More file actions
53 lines (47 loc) · 1.4 KB
/
build.gradle
File metadata and controls
53 lines (47 loc) · 1.4 KB
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
plugins {
// see https://fabricmc.net/develop/ for new versions
id 'fabric-loom' version '1.15-SNAPSHOT' apply false
// see https://projects.neoforged.net/neoforged/moddevgradle for new versions
id 'net.neoforged.moddev' version '2.0.107' apply false
id 'org.jetbrains.kotlin.jvm' version '2.2.0' apply false
}
subprojects {
apply plugin: 'java'
apply plugin: 'kotlin'
repositories {
mavenCentral()
maven {
name = 'GeckoLib'
url = uri('https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/')
}
maven {
name = 'NeoForge'
url = uri('https://maven.neoforged.net/releases')
mavenContent {
includeGroup('net.neoforged')
}
}
}
configurations.configureEach {
resolutionStrategy {
// Snapshot version can keep the same version string, so disable changing-module cache.
cacheChangingModulesFor 0, 'seconds'
}
}
sourceSets {
main.kotlin.srcDirs = ['src/main/kotlin']
main.java.srcDirs = ['src/main/java']
}
compileKotlin {
source(project(":common").sourceSets.main.allSource)
inputs.file "../gradle.properties"
}
}
/**
* 脑瘫IDEA的傻逼BUG
*/
tasks.register("idePostSync") {
doLast {
println("Skipping idePostSync — not needed for this project.")
}
}