forked from xvik/dropwizard-guicey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
88 lines (77 loc) · 3.24 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
85
86
87
88
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
import java.awt.*
buildscript {
apply from: "gradle/buildscript.gradle", to: buildscript
}
group = 'ru.vyarus'
description = 'Dropwizard guice integration'
// convention: project.name == github project name == bintray package page
project.ext {
build = {
gradle = 2.3
java = 1.7
// if not empty runs animal sniffer on compile to guarantee binary compatibility; set '' to disable
signature = 'org.codehaus.mojo.signature:java17:+@signature'
}
github = {
user = 'xvik'
}
bintray = {
user = project.hasProperty('bintrayUser') ? bintrayUser : 'USER' // configured in ~/.gradle/gradle.properties
key = project.hasProperty('bintrayKey') ? bintrayKey : 'KEY' // configured in ~/.gradle/gradle.properties
repo = 'xvik'
tags = ['dropwizard', 'guice']
dryRun = false // whether to run this as dry-run, without deploying (TEST RUN)
publish = true //If version should be auto published after an upload
signFiles = true // true to gpg sign files on bintray (certificate must be installed on bintray account)
gpgPassphrase = project.hasProperty('gpgPassphrase') ? gpgPassphrase : '' // optionally configured in ~/.gradle/gradle.properties if certificate requires it
mavenCentralSync = true // true to sync with maven central (files signing required)
ossUser = project.hasProperty('sonatypeUser') ? sonatypeUser : 'USER' // configured in ~/.gradle/gradle.properties
ossPassword = project.hasProperty('sonatypePassword') ? sonatypePassword : 'PASSWORD' // configured in ~/.gradle/gradle.properties
}
license = 'MIT'
licenseDesc = 'The MIT License'
// extend pom for maven central acceptance
pomConfig = {
scm {
url github.scm
connection github.scmConnection
developerConnection github.scmConnection
}
licenses {
license {
name licenseDesc
url github.licenseUrl
distribution "repo"
}
}
developers {
developer {
id "xvik"
name "Vyacheslav Rusakov"
email "[email protected]"
}
}
}
}
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'project-report'
apply from: 'gradle/build.gradle'
apply from: 'gradle/github.gradle'
apply from: 'gradle/bintray.gradle'
apply from: 'gradle/release.gradle'
apply from: 'gradle/maven.gradle'
apply from: 'gradle/quality.gradle'
apply from: 'build-deps.gradle'
task checkOutOfDate(type: DependencyUpdatesTask, description: 'Checks dependencies updates availability') {
revision 'release'
}
task showDependenciesTree(dependsOn: 'htmlDependencyReport', description:
'Generates dependencies tree report and opens it in browser (useful to analyze dependencies)') << {
Desktop.getDesktop().open(file('/build/reports/project/dependencies/root.html'))
}
task install(dependsOn: 'publishMavenJavaPublicationToMavenLocal', description: 'Install to local maven repository') << {
logger.warn "INSTALLED $project.group:$project.name:$project.version"
}