-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
62 lines (52 loc) · 2.28 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
allprojects {
apply plugin: 'java'
sourceCompatibility = 1.7
targetCompatibility = 1.7
group = 'io.ghostwriter'
version = "0.8.1"
// Dependency version information
ext.ghostwriterApiVersion = "0.5.0"
// Maven central related properties
ext.doUploadToSonatype = false // can be used at a later stage to disable/enable uploading to Maven Central staging
ext.sonatypeUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
ext.sonatypeUserName = project.hasProperty("sonatypeUserName") ? sonatypeUserName : ""
ext.sonatypePassword = project.hasProperty("sonatypePassword") ? sonatypePassword : ""
// General project information
ext.ghostwriterUrl = "http://ghostwriter.io"
ext.ghostwriterScm = "scm:[email protected]/snorbi07/GhostWriter"
ext.ghostwriterLicense = "GNU Lesser General Public License, version 2.1"
ext.ghostwriterLicenseUrl = "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html"
ext.ghostwriterDeveloperId = "snorbi07"
ext.ghostwriterDeveloperName = "Norbert Sram"
ext.ghostwriterDeveloperEmail = ""
}
subprojects {
repositories {
jcenter()
mavenLocal()
}
test {
// show standard out and standard error of the test JVM(s) on the console
testLogging.showStandardStreams = true
}
afterEvaluate {
tasks.withType(JavaCompile) {
options.compilerArgs.addAll(["-AGHOSTWRITER_EXCLUDE=some.package,io.ghostwriter.excluded,io.ghostwriter.ExcludedByEnvironmentClass"]);
}
}
}
task identify {
println " _____ _ ___ __ _ _"
println " / ____| | | \\ \\ / / (_) |"
println "| | __| |__ ___ ___| |\\ \\ /\\ / / __ _| |_ ___ _ __"
println "| | |_ | '_ \\ / _ \\/ __| __\\ \\/ \\/ / '__| | __/ _ \\ '__|"
println "| |__| | | | | (_) \\__ \\ |_ \\ /\\ /| | | | || __/ |"
println " \\_____|_| |_|\\___/|___/\\__| \\/ \\/ |_| |_|\\__\\___|_|"
println "Using build file '$buildFile.name' in '$buildFile.parentFile.name'."
configurations.runtime.each { File f -> println f }
}
task versionPrint(group: "Versioning", description: "Displays the current configured version of the project") {
doLast {
logger.quiet "Version: $project.version"
}
}