Update Spring-Boot and Gradle dependencies
[cacert-votebot.git] / build.gradle
1 /*
2 * Copyright (c) 2016 Jan Dittberner
3 *
4 * This file is part of CAcert votebot.
5 *
6 * CAcert votebot is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation, either version 3 of the License, or (at your option)
9 * any later version.
10 *
11 * CAcert votebot is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
15 *
16 * You should have received a copy of the GNU General Public License along with
17 * CAcert votebot. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 description = "IRC vote bot for CAcert.org"
21
22 buildscript {
23 repositories {
24 jcenter()
25 }
26
27 dependencies {
28 classpath "org.springframework.boot:spring-boot-gradle-plugin:1.5.3.RELEASE"
29 }
30 }
31
32 apply plugin: 'java'
33 apply plugin: 'application'
34 apply plugin: 'org.springframework.boot'
35
36 sourceCompatibility = 1.8
37 targetCompatibility = 1.8
38 mainClassName = 'org.cacert.votebot.vote.CAcertVoteBot'
39
40 repositories {
41 jcenter()
42 }
43
44 dependencies {
45 compile "org.springframework.boot:spring-boot-starter:1.5.3.RELEASE"
46 compile "commons-cli:commons-cli:1.3.1"
47 testCompile "org.springframework.boot:spring-boot-starter-test:1.5.3.RELEASE"
48 }
49
50 group = 'org.cacert'
51 version = '0.1.0-SNAPSHOT'
52
53 task wrapper(type: Wrapper) {
54 gradleVersion = '3.2'
55 }
56
57 bootRun {
58 args System.getProperty("exec.args", "").split()
59 }
60
61 bootRepackage {
62 executable = true
63 }