-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
61 lines (51 loc) · 1.69 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.50'
}
group 'edu.isistan'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile "org.mongodb:mongodb-driver-sync:3.11.1"
compile "org.twitter4j:twitter4j-core:4.0.7"
compile "org.twitter4j:twitter4j-stream:4.0.7"
compile "org.slf4j:slf4j-api:1.7.28"
compile "commons-cli:commons-cli:1.4"
compile "org.jsoup:jsoup:1.12.1"
compile "org.openpnp:opencv:3.4.2-1"
compile "org.seleniumhq.selenium:selenium-java:3.141.59"
compile "net.sourceforge.tess4j:tess4j:4.1.0"
compile "com.google.code.gson:gson:2.8.5"
compile "org.jooby:jooby-undertow:1.6.6"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
task compileExtension(type: Zip) {
from 'TwitterScrapper-FirefoxExtension/'
include '*'
include '*/*' //to include contents of a folder present inside Reports directory
archiveName 'extension.xpi'
destinationDir(file("$buildDir"))
}
jar {
manifest {
attributes 'Main-Class': 'edu.isistan.fakenews.FakeNewsCrawlerKt'
// attributes 'Main-Class': 'storage.AccessStorageKt'
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
task otherJar(type: Jar) {
manifest {
// attributes 'Main-Class': 'edu.isistan.fakenews.FakeNewsCrawlerKt'
attributes 'Main-Class': 'storage.AccessStorageKt'
}
baseName 'AccessStorageKt'
// from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } //si dejás esta línea el jar resultante duplica el tamaño
with jar
}