-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
77 lines (64 loc) · 1.71 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
buildscript {
repositories {
mavenCentral()
maven { url "http://repo.spring.io/libs-release" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.1.8.RELEASE")
}
}
apply plugin: 'java'
apply plugin: 'spring-boot'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'maven-publish'
version = "1.0"
group = "org.keylimebox"
repositories {
mavenCentral()
maven { url "http://repo.spring.io/libs-release" }
}
configurations {
provided
providedRuntime
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
}
}
maven(MavenPublication) {
groupId 'org.keylimebox'
artifactId 'keylimebox.mail'
version '1.0'
from components.java
}
}
repositories {
maven {
url System.getenv()['LOCAL_MAVEN_REPO']
}
}
}
eclipse.classpath.file {
// Classpath entry for Eclipse which changes the order of classpathentries; otherwise no sources for 3rd party jars are shown
withXml { xml ->
def node = xml.asNode()
node.remove( node.find { it.@path == 'org.eclipse.jst.j2ee.internal.web.container' } )
node.appendNode( 'classpathentry', [ kind: 'con', path: 'org.eclipse.jst.j2ee.internal.web.container', exported: 'true'])
}
}
eclipse {
classpath {
downloadSources = true
}
}
dependencies {
compile 'com.sun.mail:javax.mail:1.5.2'
}