mirror of
				https://github.com/GayPizzaSpecifications/drywall.git
				synced 2025-11-04 08:09:37 +00:00 
			
		
		
		
	Reformat publishing section of build.gradle.kts
This commit is contained in:
		@ -13,7 +13,6 @@ repositories {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
dependencies {
 | 
					dependencies {
 | 
				
			||||||
	implementation("org.jetbrains.kotlinx", "kotlinx-serialization-json", "1.3.3")
 | 
						implementation("org.jetbrains.kotlinx", "kotlinx-serialization-json", "1.3.3")
 | 
				
			||||||
 | 
					 | 
				
			||||||
	testImplementation(kotlin("test"))
 | 
						testImplementation(kotlin("test"))
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -43,15 +42,10 @@ publishing {
 | 
				
			|||||||
	repositories {
 | 
						repositories {
 | 
				
			||||||
		mavenLocal()
 | 
							mavenLocal()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    var githubPackagesToken = System.getenv("GITHUB_TOKEN")
 | 
							val githubPackagesToken = System.getenv("GITHUB_TOKEN")
 | 
				
			||||||
    if (githubPackagesToken == null) {
 | 
								?: project.findProperty("github.token") as String?
 | 
				
			||||||
      githubPackagesToken = project.findProperty("github.token") as String?
 | 
							val gitlabPackagesToken = System.getenv("GITLAB_TOKEN")
 | 
				
			||||||
    }
 | 
								?: project.findProperty("gitlab.com.accessToken") as String?
 | 
				
			||||||
 | 
					 | 
				
			||||||
    var gitlabPackagesToken = System.getenv("GITLAB_TOKEN")
 | 
					 | 
				
			||||||
    if (gitlabPackagesToken == null) {
 | 
					 | 
				
			||||||
      gitlabPackagesToken = project.findProperty("gitlab.com.accessToken") as String?
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
		maven {
 | 
							maven {
 | 
				
			||||||
			name = "GitHubPackages"
 | 
								name = "GitHubPackages"
 | 
				
			||||||
@ -69,7 +63,6 @@ publishing {
 | 
				
			|||||||
				name = "Private-Token"
 | 
									name = "Private-Token"
 | 
				
			||||||
				value = gitlabPackagesToken
 | 
									value = gitlabPackagesToken
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					 | 
				
			||||||
			authentication {
 | 
								authentication {
 | 
				
			||||||
				create<HttpHeaderAuthentication>("header")
 | 
									create<HttpHeaderAuthentication>("header")
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user