-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
67 lines (57 loc) · 1.67 KB
/
Copy pathbuild.gradle
File metadata and controls
67 lines (57 loc) · 1.67 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
// Root build.gradle - shared config for all subprojects
allprojects {
group = rootProject.maven_group
version = rootProject.mod_version
repositories {
exclusiveContent {
forRepository {
maven {
name = 'GeckoLib'
url = 'https://dl.cloudsmith.io/public/geckolib3/geckolib/maven/'
}
}
filter {
includeGroup('com.geckolib')
}
}
}
}
subprojects {
apply plugin: 'maven-publish'
afterEvaluate {
base {
archivesName = "$rootProject.archives_name-$project.name"
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(25)
}
withSourcesJar()
}
tasks.withType(JavaCompile).configureEach {
it.options.release = 25
}
// Include common sources in platform projects
if (project.name != 'common') {
tasks.named('compileJava').configure {
source project(':common').sourceSets.main.allSource
}
tasks.named('sourcesJar').configure {
from project(':common').sourceSets.main.allSource
}
tasks.withType(ProcessResources).configureEach {
from project(':common').sourceSets.main.resources
}
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = base.archivesName.get()
from components.java
}
}
repositories {
}
}
}
}