@@ -2,12 +2,13 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
2
3
3
4
4
plugins {
5
+ `java- library`
5
6
kotlin(" jvm" ) version " 1.7.10"
6
7
id(" org.jlleitschuh.gradle.ktlint" ) version " 10.3.0"
8
+ `maven- publish`
9
+ signing
7
10
}
8
11
9
- group = " com.valtechmobility.gradle.credentials.onepassword"
10
-
11
12
java {
12
13
sourceCompatibility = JavaVersion .VERSION_11
13
14
targetCompatibility = JavaVersion .VERSION_11
@@ -27,9 +28,52 @@ tasks.withType<Test> {
27
28
28
29
dependencies {
29
30
implementation(gradleApi())
30
- implementation(localGroovy())
31
31
32
32
testImplementation(" junit:junit:4.13.2" )
33
33
testImplementation(gradleTestKit())
34
34
testImplementation(" io.mockk:mockk:1.12.3" )
35
35
}
36
+
37
+ group = " com.valtechmobility"
38
+ version = " 0.0.1"
39
+
40
+ publishing {
41
+ publications {
42
+ register(" mavenJava" , MavenPublication ::class ) {
43
+ artifactId = " gradle-credentials-onepassword"
44
+ from(components[" java" ])
45
+ versionMapping {
46
+ usage(" java-api" ) {
47
+ fromResolutionOf(" runtimeClasspath" )
48
+ }
49
+ usage(" java-runtime" ) {
50
+ fromResolutionResult()
51
+ }
52
+ }
53
+ pom {
54
+ name.set(" gradle-credentials-onepassword" )
55
+ description.set(" gradle-credentials-onepassword is a gradle repository credential integration for 1Password" )
56
+ url.set(" https://github.com/ValtechMobility/gradle-onepassword-credentials-plugin" )
57
+
58
+ licenses {
59
+ license {
60
+ name.set(" MIT License" )
61
+ url.set(" http://opensource.org/licenses/MIT" )
62
+ }
63
+ }
64
+ developers {
65
+ developer {
66
+ id.set(" janphkre" )
67
+ name.set(" Jan Phillip Kretzschmar" )
68
+
69
+ }
70
+ }
71
+ scm {
72
+ connection.set(" scm:git://github.com/ValtechMobility/gradle-onepassword-credentials-plugin.git" )
73
+ developerConnection.set(" scm:git://github.com/ValtechMobility/gradle-onepassword-credentials-plugin.git" )
74
+ url.set(" https://github.com/ValtechMobility/gradle-onepassword-credentials-plugin" )
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
0 commit comments