@@ -7,47 +7,26 @@ pluginManagement {
77 }
88}
99
10-
1110dependencyResolutionManagement {
12- if (System .getenv(" CI" ) != null ) {
13- repositoriesMode = RepositoriesMode .PREFER_SETTINGS
14- repositories {
15- maven(" https://s01.oss.sonatype.org/content/repositories/snapshots/" )
16- maven(" https://repo.htl-md.schule/repository/Gitlab-Runner/" )
17- maven {
18- val groupdId = 28 // Gitlab Group
19- val ciApiv4Url = System .getenv(" CI_API_V4_URL" )
20- url = uri(" $ciApiv4Url /groups/$groupdId /-/packages/maven" )
21- name = " GitLab"
22- credentials(HttpHeaderCredentials ::class .java) {
23- name = " Job-Token"
24- value = System .getenv(" CI_JOB_TOKEN" )
25- }
26- authentication {
27- create<HttpHeaderAuthentication >(" header" )
28- }
29- }
30- }
31- } else {
32- repositories {
33- maven(" https://s01.oss.sonatype.org/content/repositories/snapshots/" )
34- mavenCentral()
35- maven(" https://jitpack.io" )
36- maven {
37- val groupdId = 28 // Gitlab Group
38- url = uri(" https://gitlab.onelitefeather.dev/api/v4/groups/$groupdId /-/packages/maven" )
39- name = " GitLab"
40- credentials(HttpHeaderCredentials ::class .java) {
41- name = " Private-Token"
42- value = providers.gradleProperty(" gitLabPrivateToken" ).get()
11+ repositories {
12+ mavenCentral()
13+ maven(" https://reposilite.atlasengine.ca/public" )
14+ maven {
15+ name = " OneLiteFeatherRepository"
16+ url = uri(" https://repo.onelitefeather.dev/onelitefeather" )
17+ if (System .getenv(" CI" ) != null ) {
18+ credentials {
19+ username = System .getenv(" ONELITEFEATHER_MAVEN_USERNAME" )
20+ password = System .getenv(" ONELITEFEATHER_MAVEN_PASSWORD" )
4321 }
22+ } else {
23+ credentials(PasswordCredentials ::class )
4424 authentication {
45- create<HttpHeaderAuthentication >(" header " )
25+ create<BasicAuthentication >(" basic " )
4626 }
4727 }
4828 }
4929 }
50-
5130 versionCatalogs {
5231 create(" libs" ) {
5332 version(" publishdata" , " 1.4.0" )
0 commit comments