2
2
* This file was generated by the Gradle 'init' task.
3
3
*/
4
4
5
+ import com.vanniktech.maven.publish.SonatypeHost
6
+
7
+
5
8
6
9
plugins {
7
10
id ' java-library'
8
11
id ' maven-publish'
12
+ id " com.vanniktech.maven.publish" version " 0.29.0"
13
+ id ' signing'
9
14
}
10
15
11
16
group ' com.infisical'
12
17
18
+ group = rootProject. group
19
+
13
20
repositories {
14
21
mavenCentral()
15
22
maven {
@@ -22,35 +29,49 @@ repositories {
22
29
api ' net.java.dev.jna:jna-platform:5.12.1'
23
30
}
24
31
25
- description = ' InfisicalSDK'
26
- java. sourceCompatibility = JavaVersion . VERSION_1_8
27
-
28
- publishing {
29
- publications {
30
- maven(MavenPublication ) {
31
- groupId = ' com.infisical'
32
- artifactId = ' sdk'
33
-
34
- // Get the latest tag that we'll use for the release
35
- def gitTag = ' git describe --tags --abbrev=0' . execute(). text. trim()
36
- version = " ${ gitTag} -SNAPSHOT"
37
-
38
- afterEvaluate {
39
- from components. java
40
- }
41
- }
42
- }
43
- repositories {
44
- maven {
45
- name = " OSSRH"
46
- url = " https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
47
- credentials {
48
- username = System . getenv(" MVN_USERNAME" )
49
- password = System . getenv(" MVN_TOKEN" )
50
- }
51
- }
52
- }
32
+ description = ' InfisicalSDK'
33
+ java. sourceCompatibility = JavaVersion . VERSION_1_8
34
+ }
35
+
36
+
37
+
38
+ mavenPublishing {
39
+
40
+ // Get the latest tag that we'll use for the release
41
+ def gitTag = ' git describe --tags --abbrev=0' . execute(). text. trim()
42
+ version = gitTag
43
+
44
+ coordinates(" com.infisical" , " sdk" , version)
45
+
46
+
47
+ pom {
48
+ name = " Infisical SDK"
49
+ description = " Official Java SDK for Infisical"
50
+ inceptionYear = " 2023"
51
+ url = " https://github.com/infisical/sdk"
52
+ licenses {
53
+ license {
54
+ name = " MIT License"
55
+ url = " https://opensource.org/license/MIT"
56
+ distribution = " repo"
57
+ }
53
58
}
59
+ developers {
60
+ developer {
61
+ id = " danielhougaard"
62
+ name = " Daniel Hougaard"
63
+ url = " https://github.com/danielhougaard/"
64
+ }
65
+ }
66
+ scm {
67
+ url = " https://github.com/infisical/sdk/"
68
+ connection = " scm:git:git://github.com/infisical/sdk.git"
69
+ developerConnection = " scm:git:ssh://git@github.com/infiscial/sdk.git"
70
+ }
71
+ }
72
+
73
+ publishToMavenCentral(SonatypeHost . CENTRAL_PORTAL )
74
+ signAllPublications()
54
75
}
55
76
56
77
tasks. withType(JavaCompile ) {
0 commit comments