-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
99 lines (85 loc) · 3.06 KB
/
build.gradle.kts
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
plugins {
java
kotlin("jvm") version "2.0.10"
}
val coreVersion = "1.0.0-DEV2"
version = "1.0.0-DEV2"
allprojects {
val dir = projectDir.absolutePath.split(File.separator)
val l2 = dir[dir.size - 2]
group = if (name == "SmartWeb") "com.IceCreamQAQ.SmartWeb"
else if (l2 == "TempleEngine") "com.IceCreamQAQ.SmartWeb.Temple"
else if (l2 == "WebServer") "com.IceCreamQAQ.SmartWeb.Server"
else "com.IceCreamQAQ.Yu.WebCore"
repositories {
mavenLocal()
mavenCentral()
maven("https://maven.icecreamqaq.com/repository/maven-public/")
}
pluginManager.apply(JavaLibraryPlugin::class.java)
pluginManager.apply(MavenPublishPlugin::class.java)
apply {
plugin("org.jetbrains.kotlin.jvm")
}
java {
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlin {
jvmToolchain(8)
}
configure<PublishingExtension> {
publications {
create<MavenPublication>(name) {
groupId = project.group.toString()
artifactId = name
version = rootProject.version.toString()
pom {
name.set("Rain Java Dev Framework")
description.set("Rain Java Dev Framework")
url.set("https://github.com/IceCream-Open/Rain")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("IceCream")
name.set("IceCream")
email.set("[email protected]")
}
}
scm {
connection.set("")
}
}
from(components["java"])
}
}
repositories {
mavenLocal()
maven {
val snapshotsRepoUrl = "https://maven.icecreamqaq.com/repository/maven-snapshots/"
val releasesRepoUrl = "https://maven.icecreamqaq.com/repository/maven-releases/"
url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
credentials {
System.getenv("MAVEN_USER")?.let { username = it }
System.getenv("MAVEN_TOKEN")?.let { password = it }
}
}
}
}
dependencies {
implementation("com.IceCreamQAQ.Rain:event:$coreVersion")
implementation("com.IceCreamQAQ.Rain:application:$coreVersion")
implementation("com.IceCreamQAQ.Rain:controller:$coreVersion")
implementation("commons-fileupload:commons-fileupload:1.5")
}
}
dependencies {
implementation(kotlin("stdlib"))
api("org.ehcache:ehcache:3.10.8")
}