-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
54 lines (45 loc) · 1.17 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
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'release'
group = 'org.rogern.gradlefmpp'
buildscript {
repositories {
maven {
url "https://oss.sonatype.org/content/groups/public"
}
}
dependencies {
classpath 'com.github.townsfolk:gradle-release:1.2'
}
}
repositories {
mavenLocal()
maven {
url nexusPublicUrl
}
}
dependencies {
compile gradleApi()
compile localGroovy()
}
//create a single Jar with all dependencies
jar {
manifest {
attributes 'Implementation-Title': 'Gradle Plugin for FMPP including all dependencies',
'Implementation-Version': version
}
baseName = project.name + '-all'
from { fileTree(dir: 'lib', include: '*.jar').collect { it.isDirectory() ? it : zipTree(it) } }
}
uploadArchives.repositories.mavenDeployer {
uniqueVersion = false
// credentials and repositories from gradle.properties
repository(url: releaseRepository) {
authentication(userName: nexusUsername, password: nexusPassword)
}
snapshotRepository(url: snapshotRepository) {
authentication(userName: nexusUsername, password: nexusPassword)
}
pom.artifactId = 'gradlefmpp'
}
createReleaseTag.dependsOn uploadArchives