forked from tlberglund/groovy-liquibase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
121 lines (95 loc) · 2.57 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'signing'
version = '0.7.4'
group = 'com.augusttechgroup'
def artifact = 'groovy-liquibase-dsl'
configurations {
deployment
published.extendsFrom archives, signatures
}
repositories {
mavenCentral()
}
dependencies {
groovy 'org.codehaus.groovy:groovy:1.8.6'
runtime 'org.codehaus.groovy:groovy:1.8.6'
testCompile 'junit:junit:4.8.2'
compile 'org.liquibase:liquibase-core:2.0.3'
deployment "org.apache.maven.wagon:wagon-webdav-jackrabbit:1.0-beta-7"
testRuntime 'com.h2database:h2:1.3.159'
}
task wrapper(type: Wrapper) {
gradleVersion = '1.3'
}
jar {
baseName = artifact
}
task sourceJar(type: Jar) {
description = 'An archive of the source code for Maven Central'
baseName = artifact
classifier = 'sources'
from sourceSets.main.groovy
}
task groovydocJar(type: Jar, dependsOn: groovydoc) {
description = 'An archive of the GroovyDocs for Maven Central'
baseName = artifact
classifier = 'javadoc'
from fileTree(groovydoc.destinationDir)
}
artifacts {
archives groovydocJar, sourceJar
}
signing {
sign configurations.archives
}
install {
repositories.mavenInstaller {
pom.project(pomConfiguration)
}
}
uploadPublished {
dependsOn << [ signArchives ]
repositories.mavenDeployer {
beforeDeployment { deployment ->
signPom(deployment)
}
name = 'mavenCentralReleaseDeployer'
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: mavenCentralUsername, password: mavenCentralPassword)
releases(updatePolicy: 'always')
snapshots(updatePolicy: 'never')
}
pom.project(pomConfiguration)
}
}
//
// A single place to create the POM configuration, so it can be
// applied from the install and the upload tasks.
//
def getPomConfiguration() {
return {
name('Groovy Liquibase DSL')
description('A Groovy-based DSL for the Liquibase database refactoring tool.')
url('https://github.com/tlberglund/groovy-liquibase')
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id('tlberglund')
name('Tim Berglund')
email('tlberglund@gmail.com')
}
}
scm {
connection('scm:https://tlberglund@github.com/tlberglund/groovy-liquibase')
developerConnection('scm:git@github.com:tlberglund/groovy-liquibase.git')
url('https://github.com/tlberglund/groovy-liquibase')
}
}
}