forked from TerraformersMC/GradleScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfabric-mod.gradle
More file actions
47 lines (38 loc) · 849 Bytes
/
fabric-mod.gradle
File metadata and controls
47 lines (38 loc) · 849 Bytes
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
import net.fabricmc.loom.LoomGradlePlugin
buildscript {
repositories {
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
}
maven {
name = 'TerraformersMC'
url = 'https://maven.terraformersmc.com/'
}
gradlePluginPortal()
mavenLocal()
}
dependencies {
classpath "net.fabricmc:fabric-loom:1.6-SNAPSHOT"
}
}
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
archivesBaseName = project.archive_name
group = project.maven_group
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'fabric-loom'
tasks.withType(JavaCompile).configureEach {
it.options.release = 21
it.options.encoding = "UTF-8"
}
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
jar {
from "LICENSE"
}