forked from nativelibs4java/jalico
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (54 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
60
61
62
63
64
65
66
67
68
69
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'com.github.spotbugs' version '4.7.1' apply false
id 'eclipse'
id 'java-library'
id 'maven-publish'
}
apply from: "$projectDir/gradle/spotbugs.gradle"
dependencies {
spotbugsPlugins 'com.mebigfatguy.sb-contrib:sb-contrib:7.4.7'
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.11.0'
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-all:1.9.5'
}
group = 'com.nativelibs4java'
version = '0.12-SNAPSHOT'
description = 'Jalico (Java Listenable Collections)'
sourceCompatibility = '1.5'
targetCompatibility = '1.8'
eclipse {
project {
logger.info("Adding SpotBugs to ${project.name}")
natures 'edu.umd.cs.findbugs.plugin.eclipse.findbugsNature'
buildCommand 'edu.umd.cs.findbugs.plugin.eclipse.findbugsBuilder'
}
classpath.downloadJavadoc = true
classpath.downloadSources = true
}
compileJava.sourceCompatibility = '1.5'
compileJava.targetCompatibility = '1.8'
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
tasks.withType(JavaCompile) {
it.options.encoding = 'UTF-8'
}