This repository has been archived by the owner on Jun 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle
79 lines (67 loc) · 1.83 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
68
69
70
71
72
73
74
75
76
77
78
79
plugins {
id 'fabric-loom' version '0.8-SNAPSHOT'
id 'java-gradle-plugin'
id 'maven-publish'
}
sourceCompatibility = 16
targetCompatibility = 16
archivesBaseName = "crowdin-translate"
version = "1.3+1.17"
minecraft {
refmapName = "crowdin-translate-refmap.json";
}
processResources {
inputs.property "version", project.version
filesMatching("fabric.mod.json") {
expand "version": project.version
}
}
// These are, actually, not even used in this project.
// They are only included to make loom happy.
// Use old versions intentionally to make this work with a broad range of MCs.
dependencies {
minecraft "com.mojang:minecraft:1.17"
mappings "net.fabricmc:yarn:1.17+build.1:v2"
modImplementation "net.fabricmc:fabric-loader:0.11.3"
}
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task
// if it is present.
// If you remove this task, sources will not be generated.
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
jar {
from "LICENSE"
manifest {
attributes(
'Main-Class': 'de.guntram.mcmod.crowdintranslate.CrowdinTranslate'
)
}
}
gradlePlugin {
plugins {
gradleplugin {
id = 'de.guntram.mcmod.crowdin-translate'
implementationClass = 'de.guntram.mcmod.crowdintranslate.GradlePlugin.CrowdinTranslatePlugin'
}
}
}
group = "de.guntram.mcmod"
publishing {
publications {
mavenJava(MavenPublication) {
artifact(remapJar) {
// builtBy remapJar
}
}
}
repositories {
maven {
url = "file://tmp/mymavenrepo"
}
}
}
task mypublish(dependsOn: publish, type: Exec) {
commandLine "rsync", "-av", "/tmp/mymavenrepo/", "[email protected]:/var/www/html/maven/"
}