blob: a46e152ab650d22ac926210efccb9844ecdd4a91 (
plain)
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
|
plugins {
id 'maven-publish'
id 'java'
}
version = project.mod_version
group = project.maven_group
repositories {
mavenCentral()
// Add repositories for your dependencies here.
}
dependencies {
implementation("org.apache.httpcomponents:httpclient:4.5.13")
implementation("com.google.code.gson:gson:2.10.1")
implementation("org.lwjgl:lwjgl-glfw:3.3.3")
}
processResources {
// inputs.property "version", project.version
// inputs.property "loader_version", project.loader_version
filteringCharset "UTF-8"
}
java.toolchain.languageVersion.set(JavaLanguageVersion.of(8))
java {
archivesBaseName = project.archives_base_name
}
jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
manifest {
attributes 'Fabric-MixinConfigs': 'modid.mixin.json',
'MixinConfigs': 'modid.mixin.json'
}
}
// Configure the maven publication if needed.
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
// Add repositories for publishing here.
}
}
|