1- buildscript {
2- repositories {
3- maven { url ' https://plugins.gradle.org/m2/' }
4- }
5- dependencies {
6- classpath ' com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
7- classpath ' net.ltgt.gradle:gradle-apt-plugin:0.21'
8- }
9- }
10-
11- rootProject. version = ' 9.10.0'
1+ rootProject. version = ' 9.9.1'
122group = ' com.spaceshift'
133
144allprojects {
155
166 repositories {
177 mavenCentral()
18- jcenter()
198 }
209
21- apply plugin : ' java'
22- apply plugin : ' com.jfrog.bintray '
10+ apply plugin : " java-library "
11+ apply plugin : " java-test-fixtures "
2312 apply plugin : ' maven-publish'
2413
2514 sourceCompatibility = JavaVersion . VERSION_11
2615 targetCompatibility = JavaVersion . VERSION_11
2716
28- ext {
29- projectreactorVersion = ' 3.2.9.RELEASE'
30- sl4jVersion = ' 1.7.26'
31- javaxMailVersion = " 1.5.0-b01"
32- testcontainersVersion = ' 1.11.1'
33- lombokVersion = ' 1.18.6'
34- junitJupiterVersion = " 5.4.2"
35- jetbrainsAnnotation = ' 17.0.0'
36- bintrayVersion = version
37- }
38-
3917 javadoc {
4018 failOnError = false
4119 }
@@ -45,15 +23,15 @@ allprojects {
4523 }
4624
4725 dependencies {
48- compileOnly " org .jetbrains: annotations: $j etbrainsAnnotation "
49- compileOnly " org.projectlombok: lombok: $l ombokVersion "
50- annotationProcessor " org.projectlombok: lombok: $l ombokVersion "
51-
52- testCompile " org .junit.jupiter:junit-jupiter- api: $j unitJupiterVersion "
53- testCompileOnly " org.projectlombok: lombok: $l ombokVersion "
54- testCompileOnly " org .jetbrains: annotations: $j etbrainsAnnotation "
55- testRuntimeOnly " org .junit.jupiter:junit-jupiter- engine: $j unitJupiterVersion "
56- testAnnotationProcessor " org.projectlombok: lombok: $l ombokVersion "
26+ compileOnly libs . jetbrains. annotations
27+ compileOnly libs . lombok
28+ annotationProcessor libs . lombok
29+
30+ testImplementation libs . junit. api
31+ testCompileOnly libs . lombok
32+ testCompileOnly libs . jetbrains. annotations
33+ testRuntimeOnly libs . junit. engine
34+ testAnnotationProcessor libs . lombok
5735 }
5836
5937 /* compileJava {
@@ -66,6 +44,18 @@ allprojects {
6644 }
6745 }*/
6846
47+ compileJava {
48+ options. encoding = " UTF-8"
49+ }
50+
51+ compileTestJava {
52+ options. encoding = " UTF-8"
53+ }
54+
55+ tasks. withType(Javadoc ) {
56+ options. encoding = " UTF-8"
57+ }
58+
6959 task sourcesJar(type : Jar , dependsOn : classes) {
7060 afterEvaluate {
7161 getArchiveClassifier(). set(" sources" )
@@ -83,6 +73,20 @@ allprojects {
8373 }
8474
8575 publishing {
76+ repositories {
77+ maven {
78+ name = " GitlabPackages"
79+ url = uri(" https://gitlab.com/api/v4/projects/37512056/packages/maven" )
80+ credentials(HttpHeaderCredentials ) {
81+ name = " Private-Token"
82+ value = project. findProperty(" gitlab.token" ) ?: System . getenv(" GITLAB_TOKEN" )
83+ }
84+ authentication {
85+ header(HttpHeaderAuthentication )
86+ }
87+ }
88+ }
89+
8690 publications {
8791 mavenJava(MavenPublication ) {
8892 from components. java
@@ -97,29 +101,6 @@ allprojects {
97101 }
98102 }
99103
100- bintray {
101- afterEvaluate {
102- user = project. hasProperty(" bintrayUser" ) ? project. property(" bintrayUser" ) : " "
103- key = project. hasProperty(" bintrayKey" ) ? project. property(" bintrayKey" ) : " "
104- publications = [' mavenJava' ]
105- pkg {
106- repo = ' maven'
107- name = ' com.spaceshift.' + jar. baseName
108- licenses = [' Apache-2.0' ]
109- websiteUrl = ' https://github.com/JavaSaBr/Rlib'
110- vcsUrl = ' https://github.com/JavaSaBr/RLib.git'
111- issueTrackerUrl = ' https://github.com/JavaSaBr/RLib/issues'
112- githubRepo = ' JavaSaBr/RLib'
113- githubReleaseNotesFile = ' README.md'
114- version {
115- name = rootProject. version
116- desc = rootProject. version
117- released = new Date ()
118- }
119- }
120- }
121- }
122-
123104 configurations {
124105 testArtifacts. extendsFrom testRuntime
125106 }
@@ -139,6 +120,6 @@ allprojects {
139120}
140121
141122wrapper {
142- gradleVersion = ' 6.0 '
123+ gradleVersion = ' 7.4.2 '
143124 distributionType = Wrapper.DistributionType . ALL
144125}
0 commit comments