theshell.ch/bonus2/build.gradle
bevilj fa85ea6920 Initial bonus 2 implementation
git-svn-id: svn+ssh://atelier.inf.usi.ch/home/bevilj/group-1@153 a672b425-5310-4d7a-af5c-997e18724b81
2018-11-12 18:16:45 +00:00

55 lines
976 B
Groovy

/*
* Copyright (c) 2018. Bevilacqua Joey
*/
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
}