forked from PatchworkMC/patchwork-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatchwork-api.module-conventions.gradle
More file actions
77 lines (61 loc) · 1.65 KB
/
patchwork-api.module-conventions.gradle
File metadata and controls
77 lines (61 loc) · 1.65 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
plugins {
// id 'java'
// id 'eclipse'
// id 'idea'
id 'maven-publish'
id 'fabric-loom'
id 'net.minecrell.licenser' //version '0.4.1'
id 'com.jfrog.bintray' //version '1.8.4'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = "net.patchworkmc.patchwork-api"
loom {
shareCaches = true
}
repositories {
maven { url 'https://dl.bintray.com/patchworkmc/Patchwork-Maven/' }
}
dependencies {
minecraft "com.mojang:minecraft:$rootProject.mcVersion"
mappings "net.fabricmc:yarn:${rootProject.mcVersion}${rootProject.yarnVersion}:v2"
modImplementation "net.fabricmc:fabric-loader:0.10.0+build.208"
modImplementation "net.fabricmc.fabric-api:fabric-api:0.15.1+build.260-1.14"
implementation 'net.patchworkmc:patchwork-eventbus:2.0.1:all'
implementation 'com.google.code.findbugs:jsr305:3.0.2'
// For EventBus
implementation 'net.jodah:typetools:0.6.0'
}
configurations {
dev
}
jar {
classifier = "dev"
}
afterEvaluate {
remapJar {
input = file("${project.buildDir}/libs/$archivesBaseName-${version}-dev.jar")
archiveName = "${archivesBaseName}-${version}.jar"
}
artifacts {
dev file: file("${project.buildDir}/libs/$archivesBaseName-${version}-dev.jar"), type: "jar", builtBy: jar
}
processResources {
inputs.property "version", project.version
from(project.sourceSets.main.resources.srcDirs) {
include "fabric.mod.json"
expand "version": project.version
}
from(project.sourceSets.main.resources.srcDirs) {
exclude "fabric.mod.json"
}
}
license {
header rootProject.file('HEADER')
include '**/*.java'
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from project.sourceSets.main.allSource
}