Skip to content

Commit 52b2738

Browse files
authored
prepare new relase (#9)
1 parent c8a7ceb commit 52b2738

2 files changed

Lines changed: 84 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The project generated guarantee relationships for project dependencies in the co
1717

1818
### Install CLI
1919
```bash
20-
curl -L https://github.com/cdsap/ProjectGenerator/releases/download/v0.1.2/projectGenerator --output projectGenerator
20+
curl -L https://github.com/cdsap/ProjectGenerator/releases/download/v0.1.5/projectGenerator --output projectGenerator
2121
chmod 0757 projectGenerator
2222
./projectGenerator --shape triangle --layers 5 --modules 100
2323
```
@@ -33,7 +33,7 @@ ProjectGenerator(
3333
```
3434
### Dependency
3535
```
36-
implementation("io.github.cdsap:projectgenerator:0.1.2")
36+
implementation("io.github.cdsap:projectgenerator:0.1.5")
3737
```
3838

3939
# Options

project-generator/build.gradle.kts

Lines changed: 82 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
plugins {
22
kotlin("jvm") version "1.9.20"
3+
`maven-publish`
4+
`signing`
35
}
46

57
group = "io.github.cdsap"
6-
version = "0.1.0"
8+
version = "0.1.5"
79

810
dependencies {
911
testImplementation(platform("org.junit:junit-bom:5.9.1"))
@@ -13,3 +15,82 @@ dependencies {
1315
tasks.test {
1416
useJUnitPlatform()
1517
}
18+
19+
configure<JavaPluginExtension> {
20+
withJavadocJar()
21+
withSourcesJar()
22+
}
23+
24+
publishing {
25+
repositories {
26+
maven {
27+
name = "Snapshots"
28+
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
29+
30+
credentials {
31+
username = System.getenv("USERNAME_SNAPSHOT")
32+
password = System.getenv("PASSWORD_SNAPSHOT")
33+
}
34+
}
35+
maven {
36+
name = "Release"
37+
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
38+
39+
credentials {
40+
username = System.getenv("USERNAME_SNAPSHOT")
41+
password = System.getenv("PASSWORD_SNAPSHOT")
42+
}
43+
}
44+
}
45+
publications {
46+
create<MavenPublication>("libPublication") {
47+
from(components["java"])
48+
artifactId = "projectgenerator"
49+
versionMapping {
50+
usage("java-api") {
51+
fromResolutionOf("runtimeClasspath")
52+
}
53+
usage("java-runtime") {
54+
fromResolutionResult()
55+
}
56+
}
57+
pom {
58+
scm {
59+
connection.set("scm:git:git://github.com/cdsap/ProjectGenerator/")
60+
url.set("https://github.com/cdsap/ProjectGenerator/")
61+
}
62+
name.set("projectgenerator")
63+
url.set("https://github.com/cdsap/ProjectGenerator/")
64+
description.set(
65+
"Returns graph metrics by project"
66+
)
67+
licenses {
68+
license {
69+
name.set("The MIT License (MIT)")
70+
url.set("https://opensource.org/licenses/MIT")
71+
distribution.set("repo")
72+
}
73+
}
74+
developers {
75+
developer {
76+
id.set("cdsap")
77+
name.set("Inaki Villar")
78+
}
79+
}
80+
}
81+
}
82+
}
83+
}
84+
85+
if (extra.has("signing.keyId")) {
86+
afterEvaluate {
87+
configure<SigningExtension> {
88+
(
89+
extensions.getByName("publishing") as
90+
PublishingExtension
91+
).publications.forEach {
92+
sign(it)
93+
}
94+
}
95+
}
96+
}

0 commit comments

Comments
 (0)