|
1 | | -buildscript { |
2 | | - repositories { |
3 | | - mavenCentral() |
4 | | - } |
5 | | - dependencies { |
6 | | - classpath "org.jetbrains.kotlin:kotlin-noarg:1.6.20-RC2" |
7 | | - } |
8 | | -} |
9 | | - |
10 | 1 | plugins { |
11 | | - id 'org.springframework.boot' version '2.7.18' |
12 | | - id 'java' |
13 | | - id 'org.jetbrains.kotlin.jvm' version '1.9.24' |
14 | | - id "io.gitlab.arturbosch.detekt" version "1.20.0" |
| 2 | + id 'org.jetbrains.kotlin.jvm' version '2.0.10' |
| 3 | + id 'org.jetbrains.kotlin.plugin.spring' version '2.0.10' |
| 4 | + id 'org.springframework.boot' version '3.3.4' |
| 5 | + id 'io.spring.dependency-management' version '1.1.6' |
| 6 | + id 'org.jetbrains.kotlin.plugin.jpa' version '2.0.10' |
| 7 | + id "io.gitlab.arturbosch.detekt" version "1.23.7" |
15 | 8 | } |
16 | 9 |
|
17 | | -apply plugin: "kotlin-jpa" |
18 | | -apply plugin: "kotlin-kapt" |
| 10 | +detekt { |
| 11 | + buildUponDefaultConfig = true |
| 12 | + config = files(file("config/detekt/detekt.yml")) |
| 13 | +} |
19 | 14 |
|
20 | 15 | group 'net.yogstation' |
21 | 16 | version '1.0-SNAPSHOT' |
22 | 17 |
|
23 | | -repositories { |
24 | | - maven { url 'https://repo.spring.io/milestone' } |
25 | | - mavenCentral() |
| 18 | +apply plugin: 'kotlin-kapt' |
| 19 | + |
| 20 | +java { |
| 21 | + toolchain { |
| 22 | + languageVersion = JavaLanguageVersion.of(21) |
| 23 | + } |
26 | 24 | } |
27 | 25 |
|
28 | | -jar { |
29 | | - manifest { |
30 | | - attributes 'Main-Class': 'net.yogstation.yogbot.Yogbot' |
31 | | - } |
| 26 | +repositories { |
| 27 | + mavenCentral() |
32 | 28 | } |
33 | 29 |
|
34 | 30 | dependencyLocking { |
35 | 31 | lockAllConfigurations() |
36 | 32 | } |
37 | 33 |
|
38 | 34 | dependencies { |
39 | | - kapt 'org.hibernate:hibernate-jpamodelgen:5.6.15.Final' |
40 | | - kapt "org.springframework.boot:spring-boot-configuration-processor:2.7.18" |
| 35 | + kapt 'org.hibernate:hibernate-jpamodelgen:6.5.3.Final' |
| 36 | + kapt 'org.springframework.boot:spring-boot-configuration-processor' |
| 37 | + detektPlugins "io.gitlab.arturbosch.detekt:detekt-rules-libraries:1.23.7" |
| 38 | + |
| 39 | + implementation 'org.springframework.boot:spring-boot-starter-data-jpa' |
| 40 | + implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' |
| 41 | + implementation 'org.springframework.boot:spring-boot-starter-webflux' |
| 42 | + implementation 'com.fasterxml.jackson.module:jackson-module-kotlin' |
| 43 | + implementation 'io.projectreactor.kotlin:reactor-kotlin-extensions' |
| 44 | + implementation 'org.jetbrains.kotlin:kotlin-reflect' |
| 45 | + implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-reactor' |
| 46 | + implementation 'com.mysql:mysql-connector-j' |
| 47 | + testImplementation 'org.springframework.boot:spring-boot-starter-test' |
| 48 | + testImplementation 'io.projectreactor:reactor-test' |
| 49 | + testImplementation 'org.jetbrains.kotlin:kotlin-test-junit5' |
| 50 | + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' |
41 | 51 |
|
42 | 52 | constraints { |
43 | | - implementation('org.springframework:spring-web:5.3.36'){ |
44 | | - because 'Patch CVE-2024-22243, CVE-2024-22259, CVE-2024-22262' |
45 | | - } |
| 53 | + // Example pinned dependency |
| 54 | +// implementation('org.springframework:spring-web:5.3.36'){ |
| 55 | +// because 'Patch CVE-2024-22243, CVE-2024-22259, CVE-2024-22262' |
| 56 | +// } |
46 | 57 | } |
47 | | - implementation 'org.yaml:snakeyaml:2.0' |
48 | | - implementation('com.fasterxml.jackson:jackson-bom:2.14.2') |
49 | | - implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.2' |
50 | | - implementation 'org.thymeleaf:thymeleaf:3.1.2.RELEASE' |
51 | | - implementation 'org.thymeleaf:thymeleaf-spring5:3.1.2.RELEASE' |
52 | | - implementation 'org.springframework.boot:spring-boot-starter-data-jpa:2.7.18' |
53 | | - |
54 | | - testImplementation group: 'junit', name: 'junit', version: '4.12' |
55 | | - implementation 'com.discord4j:discord4j-core:3.2.3' |
56 | | - implementation 'mysql:mysql-connector-java:8.0.32' |
57 | | - implementation 'org.springframework.boot:spring-boot-starter-webflux:2.7.18' |
58 | | - implementation 'org.springframework.boot:spring-boot-starter-thymeleaf:2.7.18' |
59 | | - implementation 'org.apache.commons:commons-text:1.10.0' |
60 | | - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8" |
61 | | - implementation "org.springframework:spring-jdbc:5.3.36" |
62 | | - implementation 'org.jetbrains.kotlin:kotlin-reflect:1.8.10' |
63 | | - implementation 'io.projectreactor.kotlin:reactor-kotlin-extensions:1.2.2' |
64 | | - implementation 'ch.qos.logback:logback-classic:1.2.13' |
65 | | - implementation 'ch.qos.logback:logback-core:1.2.13' |
66 | | - implementation 'io.netty:netty-codec-http2:4.1.100.Final' |
67 | | - implementation 'io.projectreactor.netty:reactor-netty-http:1.0.39' |
68 | 58 |
|
| 59 | + implementation 'com.discord4j:discord4j-core:3.2.6' |
| 60 | + implementation 'org.apache.commons:commons-text:1.12.0' |
| 61 | + implementation 'ch.qos.logback:logback-classic:1.5.8' |
| 62 | + implementation 'ch.qos.logback:logback-core:1.5.8' |
69 | 63 | } |
70 | 64 |
|
71 | | -compileKotlin { |
72 | | - kotlinOptions { |
73 | | - jvmTarget = "17" |
74 | | - } |
| 65 | +kotlin { |
| 66 | + compilerOptions { |
| 67 | + freeCompilerArgs.addAll '-Xjsr305=strict' |
| 68 | + } |
75 | 69 | } |
76 | | -compileTestKotlin { |
77 | | - kotlinOptions { |
78 | | - jvmTarget = "17" |
79 | | - } |
| 70 | + |
| 71 | +tasks.named('test') { |
| 72 | + useJUnitPlatform() |
80 | 73 | } |
0 commit comments