-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
45 lines (36 loc) · 1.2 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
buildscript {
repositories {
mavenLocal() // for local testing
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.shipkit:shipkit-auto-version:1.+"
classpath "org.shipkit:shipkit-changelog:1.+"
classpath "com.gradle.publish:plugin-publish-plugin:1.2.1"
}
}
apply plugin: 'maven-publish'
apply plugin: 'idea'
apply plugin: 'groovy'
group = "org.shipkit"
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
implementation 'com.github.zafarkhaja:java-semver:0.9.0'
testImplementation 'junit:junit:4.13.2'
testImplementation "org.spockframework:spock-core:2.3-groovy-3.0"
testImplementation "cglib:cglib-nodep:3.3.0" //mocking concrete classes with spock
testImplementation "org.objenesis:objenesis:3.3" //as above
}
apply from: "$rootDir/gradle/release.gradle"
apply from: "$rootDir/gradle/integ-test.gradle"
publishing { // docs: https://docs.gradle.org/current/userguide/publishing_maven.html
publications {
// Run this for local testing: "./gradlew publishMavenPublicationToMavenLocal"
maven(MavenPublication) {
from components.java
}
}
}