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.9.0'
1+ rootProject. version = ' 9.9.0-alpha2'
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"
2311 apply plugin : ' maven-publish'
2412
2513 sourceCompatibility = JavaVersion . VERSION_11
@@ -49,7 +37,7 @@ allprojects {
4937 compileOnly " org.projectlombok:lombok:$lombokVersion "
5038 annotationProcessor " org.projectlombok:lombok:$lombokVersion "
5139
52- testCompile " org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion "
40+ testImplementation " org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion "
5341 testCompileOnly " org.projectlombok:lombok:$lombokVersion "
5442 testCompileOnly " org.jetbrains:annotations:$jetbrainsAnnotation "
5543 testRuntimeOnly " org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion "
@@ -66,6 +54,10 @@ allprojects {
6654 }
6755 }*/
6856
57+ compileJava {
58+ options. encoding = " UTF-8"
59+ }
60+
6961 task sourcesJar(type : Jar , dependsOn : classes) {
7062 afterEvaluate {
7163 getArchiveClassifier(). set(" sources" )
@@ -83,6 +75,17 @@ allprojects {
8375 }
8476
8577 publishing {
78+ repositories {
79+ maven {
80+ name = " GitHubPackages"
81+ url = uri(" https://maven.pkg.github.com/javasabr/maven-repo" )
82+ credentials {
83+ username = project. findProperty(" gpr.user" ) ?: System . getenv(" GITHUB_USERNAME" )
84+ password = project. findProperty(" gpr.key" ) ?: System . getenv(" GITHUB_TOKEN" )
85+ }
86+ }
87+ }
88+
8689 publications {
8790 mavenJava(MavenPublication ) {
8891 from components. java
@@ -97,29 +100,6 @@ allprojects {
97100 }
98101 }
99102
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-
123103 configurations {
124104 testArtifacts. extendsFrom testRuntime
125105 }
@@ -139,6 +119,6 @@ allprojects {
139119}
140120
141121wrapper {
142- gradleVersion = ' 6.0 '
122+ gradleVersion = ' 7.4.2 '
143123 distributionType = Wrapper.DistributionType . ALL
144124}
0 commit comments