@@ -11,107 +11,43 @@ buildscript {
1111 }
1212}
1313
14- rootProject. version = " 0.0.1"
15- group = " com.spaceshift"
16-
17- allprojects {
18-
19- apply plugin : " java"
20- apply plugin : " groovy"
21- apply plugin : " org.springframework.boot"
14+ repositories {
15+ maven {
16+ url " https://gitlab.com/api/v4/projects/37512056/packages/maven"
17+ }
18+ }
2219
23- // sourceCompatibility = JavaVersion.VERSION_17
24- // targetCompatibility = JavaVersion.VERSION_17
20+ rootProject . version = " 0.0.1 "
21+ group = " javasabr.mqtt "
2522
23+ subprojects {
2624 repositories {
2725 mavenCentral()
2826 mavenLocal()
29- }
30-
31- dependencies {
32-
33- implementation libs. rlib. network
34- implementation libs. rlib. logger. slf4j
35- implementation libs. springboot. starter. core
36- implementation libs. springboot. starter. log4j2
37- implementation libs. project. reactor. core
38- implementation libs. gson
39-
40- compileOnly libs. jetbrains. annotations
41- compileOnly libs. jspecify
42- compileOnly libs. lombok
43- annotationProcessor libs. lombok
44-
45- // FIXME to remove
46- testImplementation libs. hivemq. mqtt. client
47- // FIXME to remove
48- testImplementation libs. moquette. broker
49- testImplementation libs. spring. test
50- testImplementation libs. spock. core
51- testImplementation libs. spock. spring
52- testImplementation libs. groovy. all
53- testImplementation libs. byte . buddy. dep
54- testImplementation libs. objenesis
55- testCompileOnly libs. jetbrains. annotations
56- testCompileOnly libs. jspecify
57- }
58-
59- test {
60- useJUnitPlatform()
61- failOnNoDiscoveredTests = false
62- }
63-
64- sourceSets {
65- main {
66- java {
67- srcDirs ' src/main/groovy'
68- }
69- }
70- test {
71- java {
72- srcDirs ' src/test/groovy'
73- }
27+ maven {
28+ url " https://gitlab.com/api/v4/projects/37512056/packages/maven"
7429 }
7530 }
76-
77- tasks. withType(Test ). configureEach {
78- maxParallelForks = 2
79- forkEvery = 100
80- jvmArgs + = " --enable-preview"
81- }
82-
83- tasks. withType(JavaCompile ). configureEach {
84- options. compilerArgs + = " --enable-preview"
85- }
86-
87- tasks. withType(GroovyCompile ). configureEach {
88- options. forkOptions. jvmArgs + = " --enable-preview"
89- }
90-
91- processResources {
92- filter(ReplaceTokens , tokens : [
93- ])
94- }
9531}
9632
97- task buildSingleArtifact ( type : GradleBuild ) {
98- group = ' build'
99- description = ' Build all modules -> Build result artifact'
33+ tasks . register( " buildSingleArtifact " , GradleBuild ) {
34+ group = " build"
35+ description = " Build all modules -> Build result artifact"
10036 tasks = [' build' , ' bootJar' ]
10137}
10238
103- task buildSingleArtifactWithoutTests ( type : GradleBuild ) {
104- group = ' build'
105- description = ' Build all modules without tests -> Build result artifact'
39+ tasks . register( " buildSingleArtifactWithoutTests " , GradleBuild ) {
40+ group = " build"
41+ description = " Build all modules without tests -> Build result artifact"
10642 tasks = [' classes' , ' bootJar' ]
10743}
10844
109- wrapper {
110- gradleVersion = ' 6.6-milestone-1'
111- distributionType = Wrapper.DistributionType . ALL
112- }
113-
11445configurations. each {
11546 it. exclude group : " org.slf4j" , module : " slf4j-log4j12"
11647 it. exclude group : " org.springframework.boot" , module : " spring-boot-starter-logging"
11748}
49+
50+ wrapper {
51+ gradleVersion = ' 9.1.0'
52+ distributionType = Wrapper.DistributionType . ALL
53+ }
0 commit comments