2018-11-12 18:16:45 +00:00
|
|
|
/*
|
2018-11-13 22:16:49 +00:00
|
|
|
* Copyright (c) 2018 Bevilacqua Joey.
|
2018-11-12 18:16:45 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
ext.kotlin_version = '1.3.0'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
|
|
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.0'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
|
|
|
apply plugin: 'application'
|
|
|
|
|
|
|
|
defaultTasks 'run'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
|
|
implementation 'org.jsoup:jsoup:1.11.3'
|
|
|
|
}
|
|
|
|
|
|
|
|
mainClassName = 'ch.usi.inf.atelier.group1.Main'
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
main.java.srcDirs += 'src'
|
|
|
|
}
|
|
|
|
|
|
|
|
task sourcesJar(type: Jar) {
|
|
|
|
classifier = 'sources'
|
|
|
|
from 'src'
|
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes 'Main-Class': 'ch.usi.inf.atelier.group1.MainKt'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
baseName = 'bonus2'
|
|
|
|
classifier = null
|
|
|
|
version = null
|
|
|
|
}
|