|
| 1 | +import org.jreleaser.model.Active |
| 2 | + |
1 | 3 | plugins { |
2 | 4 | `java-library` |
3 | 5 | idea |
4 | 6 | `maven-publish` |
| 7 | + id("org.jreleaser") version "1.23.0" |
5 | 8 | } |
6 | 9 |
|
7 | 10 | group = "io.github.over-run" |
8 | | -version = "1.0.0-SNAPSHOT" |
| 11 | +version = "1.0.0" |
9 | 12 |
|
10 | 13 | repositories { |
11 | 14 | mavenCentral() |
@@ -58,13 +61,74 @@ tasks.withType<JavaCompile> { |
58 | 61 | options.release = 25 |
59 | 62 | } |
60 | 63 |
|
| 64 | +publishing.repositories { |
| 65 | + maven { |
| 66 | + name = "staging" |
| 67 | + url = uri(layout.buildDirectory.dir("staging-deploy")) |
| 68 | + } |
| 69 | +} |
| 70 | + |
61 | 71 | publishing.publications { |
62 | 72 | register<MavenPublication>("mavenPublication") { |
63 | 73 | groupId = project.group.toString() |
64 | 74 | artifactId = "native-list" |
65 | 75 | version = project.version.toString() |
66 | 76 | from(components["java"]) |
67 | 77 | pom { |
| 78 | + name = "Native List" |
| 79 | + description = "Native list is a resizable array backed by memory segment." |
| 80 | + url = "https://github.com/Over-Run/native-list" |
| 81 | + licenses { |
| 82 | + license { |
| 83 | + name = "MIT License" |
| 84 | + url = "https://raw.githubusercontent.com/Over-Run/native-list/refs/heads/main/LICENSE" |
| 85 | + } |
| 86 | + } |
| 87 | + developers { |
| 88 | + developer { |
| 89 | + name = "squid233" |
| 90 | + organization = "Overrun Organization" |
| 91 | + organizationUrl = "https://github.com/Over-Run" |
| 92 | + } |
| 93 | + } |
| 94 | + scm { |
| 95 | + connection = "scm:git:git://github.com/Over-Run/native-list.git" |
| 96 | + developerConnection = "scm:git:ssh://github.com:Over-Run/native-list.git" |
| 97 | + url = "https://github.com/Over-Run/native-list" |
| 98 | + } |
| 99 | + } |
| 100 | + } |
| 101 | +} |
| 102 | + |
| 103 | +jreleaser { |
| 104 | + signing { |
| 105 | + pgp { |
| 106 | + active = Active.ALWAYS |
| 107 | + armored = true |
| 108 | + } |
| 109 | + } |
| 110 | + deploy { |
| 111 | + maven { |
| 112 | + mavenCentral { |
| 113 | + mavenCentral { |
| 114 | + register("release-deploy") { |
| 115 | + active = Active.RELEASE |
| 116 | + url = "https://central.sonatype.com/api/v1/publisher" |
| 117 | + stagingRepository("build/staging-deploy") |
| 118 | + } |
| 119 | + } |
| 120 | + nexus2 { |
| 121 | + register("snapshot-deploy") { |
| 122 | + active = Active.SNAPSHOT |
| 123 | + snapshotUrl = "https://central.sonatype.com/repository/maven-snapshots/" |
| 124 | + applyMavenCentralRules = true |
| 125 | + snapshotSupported = true |
| 126 | + closeRepository = true |
| 127 | + releaseRepository = true |
| 128 | + stagingRepository("build/staging-deploy") |
| 129 | + } |
| 130 | + } |
| 131 | + } |
68 | 132 | } |
69 | 133 | } |
70 | 134 | } |
0 commit comments