-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
63 lines (55 loc) · 1.42 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
plugins {
id "net.ltgt.apt" version "0.15"
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: "net.ltgt.apt-eclipse"
apply plugin: 'maven-publish'
group 'org.freeplane.collaboration'
version = '0.0.1-SNAPSHOT'
targetCompatibility='1.8'
sourceCompatibility='1.8'
repositories {
maven {
url "http://repo1.maven.org/maven2"
}
}
dependencies {
compileOnly "org.immutables:value:2.6.1:annotations"
annotationProcessor "org.immutables:value:2.6.1"
compile 'com.fasterxml.jackson.core:jackson-databind:2.9.0',
'com.fasterxml.jackson.core:jackson-core:2.9.0',
'com.fasterxml.jackson.core:jackson-annotations:2.9.0',
'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.0'
testCompile 'junit:junit:4.12',
'org.hamcrest:hamcrest-all:1.3',
'org.mockito:mockito-all:1.10.19',
'org.assertj:assertj-core:3.8.0'
}
eclipse {
jdt {
apt {
genSrcDir = file('apt_generated')
}
}
}
task sourceJar(type: Jar) {
dependsOn compileJava
from sourceSets.main.allJava, sourceSets.main.output.generatedSourcesDir
classifier "sources"
}
publishing {
publications {
freeplaneEvents(MavenPublication) {
from components.java
artifactId 'freeplane-events'
artifacts = [jar]
artifact sourceJar {
classifier "sources"
}
}
}
repositories {
maven { url "${project.gradle.gradleUserHomeDir}/local-artifacts" }
}
}