|
1 | | -// library version is defined in gradle.properties |
2 | | -val libraryVersion: String by project |
3 | | - |
4 | 1 | plugins { |
5 | 2 | id("com.android.library") |
6 | 3 | kotlin("android") |
@@ -65,39 +62,42 @@ afterEvaluate { |
65 | 62 | publishing { |
66 | 63 | publications { |
67 | 64 | create<MavenPublication>("maven") { |
68 | | - groupId = "org.lightningdevkit" |
69 | | - artifactId = "ldk-node-android" |
70 | | - version = libraryVersion |
| 65 | + val mavenArtifactId = "ldk-node-android" |
| 66 | + groupId = providers.gradleProperty("group").orNull ?: "com.synonym" |
| 67 | + artifactId = mavenArtifactId |
| 68 | + version = providers.gradleProperty("version").orNull ?: "0.0.0" |
71 | 69 |
|
72 | 70 | from(components["release"]) |
73 | 71 | pom { |
74 | | - name.set("ldk-node-android") |
75 | | - description.set( |
76 | | - "LDK Node, a ready-to-go Lightning node library built using LDK and BDK." |
77 | | - ) |
78 | | - url.set("https://lightningdevkit.org") |
| 72 | + name.set(mavenArtifactId) |
| 73 | + description.set("LDK Node Android bindings (Synonym fork).") |
| 74 | + url.set("https://github.com/synonymdev/ldk-node") |
79 | 75 | licenses { |
80 | | - license { |
81 | | - name.set("APACHE 2.0") |
82 | | - url.set("https://github.com/lightningdevkit/ldk-node/blob/main/LICENSE-APACHE") |
83 | | - } |
84 | 76 | license { |
85 | 77 | name.set("MIT") |
86 | | - url.set("https://github.com/lightningdevkit/ldk-node/blob/main/LICENSE-MIT") |
| 78 | + url.set("https://github.com/synonymdev/ldk-node/blob/main/LICENSE-MIT") |
87 | 79 | } |
88 | 80 | } |
89 | 81 | developers { |
90 | 82 | developer { |
91 | | - id.set("tnull") |
92 | | - name.set("Elias Rohrer") |
93 | | - email.set("dev@tnull.de") |
| 83 | + id.set("synonymdev") |
| 84 | + name.set("Synonym") |
| 85 | + email.set("noreply@synonym.to") |
94 | 86 | } |
95 | 87 | } |
96 | | - scm { |
97 | | - connection.set("scm:git:github.com/lightningdevkit/ldk-node.git") |
98 | | - developerConnection.set("scm:git:ssh://github.com/lightningdevkit/ldk-node.git") |
99 | | - url.set("https://github.com/lightningdevkit/ldk-node/tree/main") |
100 | | - } |
| 88 | + } |
| 89 | + } |
| 90 | + } |
| 91 | + repositories { |
| 92 | + maven { |
| 93 | + val repo = System.getenv("GITHUB_REPO") |
| 94 | + ?: providers.gradleProperty("gpr.repo").orNull |
| 95 | + ?: "synonymdev/ldk-node" |
| 96 | + name = "GitHubPackages" |
| 97 | + url = uri("https://maven.pkg.github.com/$repo") |
| 98 | + credentials { |
| 99 | + username = System.getenv("GITHUB_ACTOR") ?: providers.gradleProperty("gpr.user").orNull |
| 100 | + password = System.getenv("GITHUB_TOKEN") ?: providers.gradleProperty("gpr.key").orNull |
101 | 101 | } |
102 | 102 | } |
103 | 103 | } |
|
0 commit comments