-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
77 lines (63 loc) · 1.89 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
plugins {
id "maven-publish"
id "org.jetbrains.kotlin.jvm" version "1.5.10"
id "com.github.johnrengelman.shadow" version "6.1.0"
id "org.jetbrains.dokka" version "1.4.0-rc"
}
allprojects {
apply plugin: "org.jetbrains.dokka"
apply plugin: "maven-publish"
apply plugin: "org.jetbrains.kotlin.jvm"
apply plugin: "com.github.johnrengelman.shadow"
shadowJar {
archiveClassifier.set("")
relocate "me.mattstudios.mfmsg", "dev.jaims.mcutils.libs.mfmsg"
}
repositories {
mavenCentral()
maven { url "https://repo.jaims.dev/repository/all/" }
}
dependencies {
compileOnly "me.bristermitten:pdm:0.0.33"
compileOnly "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation group: "org.jetbrains.kotlin", name: "kotlin-test-junit", version: "1.4.0"
}
}
dokkaHtmlCollector {
outputDirectory = "$projectDir/docs"
}
def ver = "2.2.14"
group "dev.jaims"
version ver
subprojects {
group "dev.jaims.mcutils"
version ver
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
mavenLocal()
maven {
def releasesRepoUrl = "https://repo.jaims.dev/repository/maven-releases/"
def snapshotsRepoUrl = "https://repo.jaims.dev/repository/maven-snapshots/"
url = version.endsWith("SNAPSHOT") ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = project.property("sonatype.user")
password = project.property("sonatype.password")
}
}
}
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}