-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
103 lines (90 loc) · 2.93 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
plugins {
id 'net.saliman.cobertura' version '2.5.4'
}
apply plugin: 'java-library'
apply plugin: 'findbugs'
apply plugin: 'signing'
apply plugin: 'maven-publish'
apply plugin: 'checkstyle'
group = 'biz.metacode.calcscript'
version = '2.0.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
}
jar {
manifest {
attributes 'Main-Class': 'biz.metacode.calcscript.interpreter.shell.Main'
}
}
dependencies {
compile group: 'com.google.code.findbugs', name: 'jsr305', version:'2.0.0'
testCompile group: 'junit', name: 'junit', version:'4.10'
// slf4j is needed for cobertura
testRuntime 'org.slf4j:slf4j-api:1.7.10'
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'interpreter'
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'Calcscript interpreter'
description = 'Calcscript is a stack based language designed with the purpose of executing complex calculations using minimum number of keystrokes'
url = 'https://github.com/MetacodeBiz/calcscript-interpreter'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0'
}
}
developers {
developer {
id = 'wiktor'
name = 'Wiktor Kwapisiewicz'
email = 'wiktor@metacode.biz'
url = 'https://metacode.biz/@wiktor'
roles = [ 'owner', 'developer' ]
organization = 'Metacode'
organizationUrl = 'https://metacode.biz'
}
}
scm {
connection = 'scm:git:https://github.com/MetacodeBiz/calcscript-interpreter'
developerConnection = 'scm:git:https://github.com/MetacodeBiz/calcscript-interpreter'
url = 'https://github.com/MetacodeBiz/calcscript-interpreter'
}
}
}
}
repositories {
maven {
name 'sonatypeStaging'
url 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
}
}
}
signing {
useGpgCmd()
sign publishing.publications.mavenJava
}
cobertura {
coverageCheckTotalLineRate = 91
coverageCheckTotalBranchRate = 81
coverageCheckHaltOnFailure = true
}
defaultTasks 'clean', 'test', 'findbugsMain', 'findbugsTest', 'checkstyleMain', 'coberturaCheck', 'javadoc', 'jar'