-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
81 lines (69 loc) · 2.1 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
apply plugin: 'kotlin'
apply plugin: 'maven'
apply plugin: 'publishing'
apply plugin: 'maven-publish'
apply plugin: 'maven-publish-auth'
version = '1.4'
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
main.java.srcDirs += 'src/main/resources'
test.java.srcDirs += 'src/test/kotlin'
}
sourceCompatibility = JavaVersion.VERSION_1_7
repositories {
mavenCentral()
maven {
url "http://repository.jetbrains.com/all"
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:${project.ext.kotlin_version}"
compile 'org.springframework:spring-context:4.0.3.RELEASE'
compile 'javax.mail:mail:1.4.7'
compile 'com.googlecode.json-simple:json-simple:1.1'
compile 'com.floreysoft:jmte:3.0'
compile 'org.slf4j:slf4j-api:1.7.5'
compile 'ch.qos.logback:logback-classic:1.1.2'
compile 'org.apache.commons:commons-io:1.3.2'
compile 'org.apache.commons:commons-lang3:3.3.1'
compile 'org.apache.commons:commons-email:1.3.3'
compile files('lib/subethasmtp_authpatch_gwc-3.1.7.1.jar')
testCompile 'junit:junit:4.11'
testCompile 'org.mockito:mockito-all:1.9.5'
testCompile 'org.jetbrains.spek:spek:0.1-SNAPSHOT'
}
buildscript {
project.ext.kotlin_version = '0.11.91.1'
repositories {
mavenCentral()
}
dependencies {
classpath 'org.hibernate.build.gradle:gradle-maven-publish-auth:2.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${project.ext.kotlin_version}"
}
}
compileKotlin {
kotlinOptions.annotations = file('annotations')
}
jar {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
manifest {
attributes 'Main-Class': 'org.jtalks.pochta.PochtaPackage'
}
}
publishing {
publications {
maven(MavenPublication) {
from components.java
groupId "org.jtalks"
version "$version"
artifactId "jtalks-pochta"
}
repositories {
maven {
url "http://repo.jtalks.org/content/repositories/releases/"
name "jtalks-nexus"
}
}
}
}