-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
115 lines (99 loc) · 3.45 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
plugins {
id 'java'
id 'application'
id 'java-library'
id 'io.spring.dependency-management' version "1.0.12.RELEASE"
id 'org.springframework.boot' version '2.7.3'
id 'edu.sc.seis.launch4j' version '2.5.4'
}
group 'org.devalurum'
version '1.0'
description = 'Solar Position Calculator'
java.sourceCompatibility = JavaVersion.VERSION_11
repositories {
mavenLocal()
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
maven {
url = uri('https://repo1.maven.org/maven2/')
}
maven {
url "https://plugins.gradle.org/m2/"
}
mavenCentral()
}
ext {
solarpositioningVersion = "0.1.7"
fingBugsVersion = "3.0.2"
lombokVersion = "1.18.24"
apacheCommonsVersion = "3.0"
}
dependencies {
implementation('org.springframework.boot:spring-boot-starter-web') {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-json'
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-webmvc'
exclude group: 'org.apache.tomcat.embed', module: 'tomcat-embed-core:9.0.65'
exclude group: 'org.apache.tomcat.embed', module: 'tomcat-embed-el:9.0.65'
exclude group: 'org.apache.tomcat.embed', module: 'tomcat-embed-websocket:9.0.65'
}
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-configuration-processor'
implementation "net.e175.klaus:solarpositioning:$solarpositioningVersion"
implementation "com.google.code.findbugs:jsr305:$fingBugsVersion"
implementation "org.apache.commons:commons-lang3:$apacheCommonsVersion"
compileOnly "org.projectlombok:lombok:$lombokVersion"
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
}
configurations {
compile.exclude module: 'spring-boot-starter-tomcat'
compile.exclude module: 'spring-boot-starter-json'
compile.exclude module: 'spring-boot-starter-logging'
compile.exclude module: 'spring-boot-starter-webmvc'
compile.exclude group: 'org.apache.tomcat'
compile.exclude group: 'org.apache.tomcat.embed'
}
bootRun {
standardInput = System.in
}
run {
standardInput = System.in
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
task managedVersions {
doLast {
dependencyManagement.managedVersions.each {
println it
}
}
}
springBoot {
buildInfo()
}
tasks.named("bootJar") {
archiveName = "$baseName.$extension"
}
launch4j {
headerType = "console"
outfile = "${project.description}.exe"
windowTitle = project.description
mainClassName = project.mainClassName
icon = "${projectDir}/src/main/resources/icons/solar-system.ico"
productName = project.description
internalName = project.description
fileDescription = project.description
language = "RUSSIAN"
version = project.version
textVersion = project.version
downloadUrl = "https://github.com/devalurum/solar-position"
supportUrl = "https://jitpack.io/p/KlausBrunner/solarpositioning"
companyName = "Devalurum"
copyright = "© 2023 Devalurum"
jreMinVersion = JavaVersion.VERSION_1_8
messagesStartupError = "Install Java 8+ version for start this program. Download: https://corretto.aws/downloads/latest/amazon-corretto-11-x64-windows-jdk.msi"
restartOnCrash = false
jarTask = project.tasks.bootJar
}