|
1 | 1 | plugins { |
2 | | - `java-library` |
3 | | - `maven-publish` |
4 | 2 | `java-test-fixtures` |
5 | | - signing |
6 | 3 | alias(libs.plugins.openrewrite.recipe.library.base) |
7 | 4 | id("conventions.kotlin") |
8 | 5 | id("conventions.koin") |
| 6 | + id("conventions.publishable-library") |
| 7 | +} |
| 8 | + |
| 9 | +publishableLibrary { |
| 10 | + name = "allwrite-recipes" |
| 11 | + description = "A collection of recipes, filling the gaps in vanilla OpenRewrite" |
9 | 12 | } |
10 | 13 |
|
11 | 14 | recipeDependencies { |
@@ -51,47 +54,8 @@ dependencies { |
51 | 54 | testImplementation(libs.rewrite.test) |
52 | 55 | } |
53 | 56 |
|
54 | | -publishing { |
55 | | - publications { |
56 | | - create<MavenPublication>("library") { |
57 | | - from(components["java"]) |
58 | | - pom { |
59 | | - name = "allwrite-recipes" |
60 | | - description = "A collection of recipes, filling the gaps in vanilla OpenRewrite" |
61 | | - url = "https://github.com/allegro/allwrite" |
62 | | - licenses { |
63 | | - license { |
64 | | - name = "Apache License, Version 2.0" |
65 | | - url = "https://www.apache.org/licenses/LICENSE-2.0.txt" |
66 | | - } |
67 | | - } |
68 | | - scm { |
69 | | - url = "https://github.com/allegro/allwrite" |
70 | | - connection = "scm:git@github.com:allegro/allwrite.git" |
71 | | - developerConnection = "scm:git@github.com:allegro/allwrite.git" |
72 | | - } |
73 | | - developers { |
74 | | - developer { |
75 | | - id = "radoslaw-panuszewski" |
76 | | - name = "Radosław Panuszewski" |
77 | | - } |
78 | | - developer { |
79 | | - id = "aleksandrserbin" |
80 | | - name = "Aleksandr Serbin" |
81 | | - } |
82 | | - } |
83 | | - } |
84 | | - } |
85 | | - } |
86 | | -} |
87 | | - |
88 | | -signing { |
89 | | - val gpgKeyId = System.getenv("GPG_KEY_ID") |
90 | | - val gpgPrivateKey = System.getenv("GPG_PRIVATE_KEY") |
91 | | - val gpgPrivateKeyPassword = System.getenv("GPG_PRIVATE_KEY_PASSWORD") |
92 | | - |
93 | | - if (gpgKeyId != null && gpgPrivateKey != null && gpgPrivateKeyPassword != null) { |
94 | | - useInMemoryPgpKeys(gpgKeyId, gpgPrivateKey, gpgPrivateKeyPassword) |
95 | | - sign(publishing.publications["library"]) |
| 57 | +tasks { |
| 58 | + test { |
| 59 | + jvmArgs("-Xmx4g") |
96 | 60 | } |
97 | 61 | } |
0 commit comments