This repository has been archived by the owner on Apr 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
59 lines (53 loc) · 1.49 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
apply plugin: "groovy"
apply plugin: "idea"
apply plugin: "release"
group = "org.primeframework.gradle"
version = "0.4"
description = "The Init Plugin"
sourceCompatibility = 1.6
// Build script config
buildscript {
repositories {
ivy {
name "inversoftPublic"
ivyPattern "http://hawking.inversoft.com/repository/public/[organisation]/[module]/[revision]/ivy.xml"
artifactPattern "http://hawking.inversoft.com/repository/public/[organisation]/[module]/[revision]/[type]s/[artifact]-[revision].[ext]"
}
ivy {
url "${project.gradle.gradleUserHomeDir}/integration-cache"
}
}
dependencies {
classpath(
"org.primeframework.gradle:gradle-release-plugin:0.6",
)
}
}
configurations {
sources {
description "Configuration for sources"
}
}
dependencies {
compile gradleApi()
groovy localGroovy()
}
repositories {
ivy {
url "${project.gradle.gradleUserHomeDir}/integration-cache"
}
ivy {
ivyPattern "file:///$releasePlugin.inversoftIvyGitRepo/repository/public/[organisation]/[module]/[revision]/ivy.xml"
artifactPattern "file:///$releasePlugin.inversoftIvyGitRepo/repository/public/[organisation]/[module]/[revision]/[type]s/[artifact]-[revision].[ext]"
}
}
// Add the source JAR
project.task("sourceJar", type: Jar) {
if (project.sourceSets.main.hasProperty("groovy")) {
from project.sourceSets.main.groovy
}
if (project.sourceSets.main.hasProperty("java")) {
from project.sourceSets.main.java
}
classifier = "sources"
}