-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
73 lines (61 loc) · 1.62 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
plugins {
id 'groovy'
id 'java-library'
id 'maven-publish'
}
defaultTasks 'jar'
group = 'com.github.org-arl'
version = "1.3.1"
targetCompatibility = 1.8
sourceCompatibility = 1.8
publishing {
publications {
maven(MavenPublication) {
groupId = 'org.arl.fjage'
artifactId = project.name
from components.java
}
}
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/org-arl/fjage-sentuator"
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("gpr.token") ?: System.getenv("GITHUB_TOKEN")
}
}
}
}
repositories {
maven { url 'https://oss.sonatype.org/content/groups/public' }
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
dependencies {
implementation 'org.codehaus.groovy:groovy:2.5.20'
implementation 'com.github.org-arl:fjage:1.11.0'
testImplementation 'junit:junit:4.12'
testImplementation 'org.spockframework:spock-core:1.0-groovy-2.4'
}
compileGroovy {
options.compilerArgs << "-Xlint:all"
options.compilerArgs << "-Xlint:-options"
}
jar {
manifest {
attributes 'Build-Owner': System.getenv().USER, 'Build-Timestamp': new Date().format('d-MM-yyyy_HH:mm:ss'), 'Build-Version': version
}
}
groovydoc {
destinationDir = file("docs")
}
////// tasks for MavenCentral deployment
task javadocJar(type: Jar, dependsOn: groovydoc) {
classifier = 'javadoc'
from groovydoc.destinationDir
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}