-
Notifications
You must be signed in to change notification settings - Fork 1
/
publish.gradle
53 lines (40 loc) · 1.12 KB
/
publish.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
import org.apache.tools.ant.filters.ReplaceTokens
String updatesDirectory = "H:\\CandorApps\\updates"
publishing {
publications {
CandorPublication(MavenPublication) {
from components.java
// artifact sourcesJar
// artifact javadocJar
groupId "uk.co.innoxium.candor"
artifactId "candor-api"
version version
}
}
repositories {
maven {
url "https://repo.repsy.io/mvn/innoxium/innoxium"
credentials {
username repsyUser
password repsyPass
}
}
}
}
task publishToLatest {
// println(incremental)
// Steps:
// First read the current version from version field
// Next package up candor and publish to server
// Generate update notification for twitter/discord
// Update version info to next version
}
task processSource(type: Sync) {
from sourceSets.main.java
inputs.property 'version', version
filter(ReplaceTokens, tokens: [VERSION: version])
into "$buildDir/src"
}
compileJava {
source = processSource.outputs
}