-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (55 loc) · 1.6 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
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'java'
id 'maven-publish'
id 'application'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'io.javalin:javalin:6.3.0'
implementation 'org.slf4j:slf4j-simple:2.0.16'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.0'
implementation 'org.mybatis:mybatis:3.5.16'
implementation 'org.xerial:sqlite-jdbc:3.46.1.3'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.18.+'
implementation 'org.webjars.npm:vue:3.5.12'
compileOnly 'org.projectlombok:lombok:1.18.34'
annotationProcessor 'org.projectlombok:lombok:1.18.34'
}
group = 'io.github.mattn.todo'
version = '1.0.0'
description = 'Todo App'
sourceCompatibility = '1.8'
mainClassName = 'io.github.mattn.todo.Main'
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Jar) {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
jar {
from(configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }) {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
manifest {
attributes 'Implementation-Title': 'todo',
'Implementation-Version': version,
'Built-By': System.getProperty('user.name'),
'Built-Date': new Date(),
'Built-JDK': System.getProperty('java.version'),
'Main-Class': mainClassName
}
}