-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
84 lines (73 loc) · 1.71 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
78
79
80
81
82
83
84
import org.apache.tools.ant.filters.ReplaceTokens
buildscript {
repositories {
mavenLocal()
jcenter()
maven {
url "https://repo.conduit.systems/repository/releases/"
}
}
dependencies {
classpath "systems.conduit:Stream:1.0.3"
}
}
plugins {
id "checkstyle"
}
apply plugin: "Stream"
dependencies {
api "org.reflections:reflections:0.9.12"
api "org.jline:jline:3.18.0"
api "org.apache.logging.log4j:log4j-slf4j-impl:2.14.0"
implementation "com.zaxxer:HikariCP:3.4.5"
implementation "redis.clients:jedis:3.4.0"
implementation "com.moandjiezana.toml:toml4j:0.7.2"
implementation "org.mongodb:mongo-java-driver:3.6.0"
}
conduit {
version = null
minecraft = "1.16.5"
java = "1.8"
}
group = theGroup
version = theVersion
checkstyle {
configFile = file("$rootDir/checkstyle.xml")
}
task processSource(type: Sync) {
from sourceSets.main.java
inputs.property "version", version
filter(ReplaceTokens, tokens: [VERSION: version])
into "$buildDir/src"
}
compileJava {
source = processSource.outputs
}
java {
withSourcesJar()
}
task copyResources {
copy {
from "build/resources/main"
into "build/classes/java/main"
}
}
compileJava.doLast {
tasks.copyResources
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
maven {
credentials {
username System.getProperty("MAVEN_USER") ?: "ci"
password System.getProperty("MAVEN_PASSWORD") ?: "password"
}
url "https://repo.conduit.systems/repository/releases/"
}
}
}