This repository has been archived by the owner on Aug 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
65 lines (53 loc) · 1.61 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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
sourceCompatibility = 1.7
group = 'com.github.mwoz123'
version = '0.87'
jar {
manifest {
attributes 'Main-Class': 'com.github.mwoz123.send2ebook.Send2Ebook'
}
}
repositories {
mavenCentral()
maven {
url 'https://github.com/psiegman/mvn-repo/raw/master/releases'
}
}
dependencies {
compile group: 'commons-io', name: 'commons-io', version: '2.6'
compile group: 'commons-net', name: 'commons-net', version: '3.6'
compile group: 'org.jsoup', name: 'jsoup', version: '1.11.2'
compile group: 'nl.siegmann.epublib', name: 'epublib-core', version: '3.1'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.3'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.3'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.0'
}
task copySampleConnection(type: Copy) {
from 'src/main/resources/sampleConnection.properties'
into 'repo/com/github/mwoz123/'+ version
}
task fatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'com.github.mwoz123.send2ebook.Send2Ebook'
}
version= ""
destinationDir = file("$rootDir/commandline/")
baseName = project.getName() + '-with-dependecies'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: "file://"+ System.getProperty("user.dir") +"/repo/")
}
}
artifacts {
fatJar
}
}