-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
48 lines (41 loc) · 1.06 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.31' apply false
}
group 'blue.sparse.sparse-mc'
version '1.0-SNAPSHOT'
allprojects {
apply plugin: 'maven-publish'
}
subprojects {
apply from: "../../common.gradle"
group 'blue.sparse.sparse-mc'
publishing {
publications {
mavenJava(MavenPublication) {
groupId project.group
artifactId project.name
version project.version
from components.java
}
}
repositories {
maven {
name = "sparse"
url "F:\\maven"
}
}
}
}
task fullJar(type: Jar, dependsOn: subprojects.collect { it.tasks["jar"] }) {
group "minecraft"
archiveName = "$buildDir/libs/SparseMC-API.jar"
from subprojects.collect { zipTree((it.tasks["jar"] as Jar).archivePath) }
// from subprojects.collect { it.sourceSets.main.output }
// from subprojects.collect { it.configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
// from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
task copyToPlugins(type: Copy) {
group "minecraft"
into("testServer/plugins")
from fullJar
}