-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpublishing.gradle
More file actions
30 lines (29 loc) · 913 Bytes
/
Copy pathpublishing.gradle
File metadata and controls
30 lines (29 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import org.gradle.api.publish.maven.MavenPublication
import org.gradle.api.credentials.HttpHeaderCredentials
import org.gradle.authentication.http.HttpHeaderAuthentication
publishing {
publications {
mavenJava(MavenPublication) {
artifact(tasks.named("jar")) {
builtBy(tasks.named("jar"))
}
// opzionale, ma utile:
pom {
name = "opcgui"
description = "..."
}
}
}
repositories {
maven {
name = "Gitea"
url = uri("http://192.168.178.199/api/packages/imggion/maven")
allowInsecureProtocol = true
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "token ${giteaToken}"
}
authentication { create("header", HttpHeaderAuthentication) }
}
}
}