-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
48 lines (42 loc) · 1.11 KB
/
build.gradle
File metadata and controls
48 lines (42 loc) · 1.11 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
plugins {
id 'java'
id 'maven-publish'
id 'org.jetbrains.gradle.plugin.idea-ext'
id 'com.gradleup.shadow'
}
allprojects {
repositories {
mavenCentral()
mavenLocal()
gradlePluginPortal()
maven { url 'https://libraries.minecraft.net/' }
maven { url "https://cursemaven.com" }
maven { url = 'https://maven.neoforged.net/releases' }
}
group = mod_group_id
version = mod_version
}
subprojects {
apply plugin: 'java'
apply plugin: 'com.gradleup.shadow'
apply plugin: 'maven-publish'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
}
clean {
delete "target"
}
tasks.register('copyConfigToRun', Copy) {
def fileToCopy = file('whitelistsync2-common.toml') // Specify the file to copy
subprojects.findAll { subproject ->
subproject.name.startsWith('forge')
|| subproject.name.startsWith('fabric')
|| subproject.name.startsWith('neoforge')
}.each { subproject ->
copy {
from fileToCopy
into subproject.file('run/config')
}
}
}