File tree 3 files changed +20
-9
lines changed
buildSrc/src/main/kotlin/buildsrc/convention
3 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 1
- [ ![ ] ( https://jitpack.io/v/adamko-dev/kotlinx-serialization-typescript-generator.svg )] ( https://jitpack.io/#adamko-dev/kotlinx-serialization-typescript-generator )
1
+ [ ![ Status] ( https://img.shields.io/badge/status-proof--of--concept-blueviolet?style=flat-square )] ( https://github.com/adamko-dev/kotlinx-serialization-typescript-generator#status )
2
+ [ ![ GitHub license] ( https://img.shields.io/github/license/adamko-dev/kotlinx-serialization-typescript-generator?style=flat-square )] ( https://github.com/adamko-dev/kotlinx-serialization-typescript-generator/blob/main/LICENSE )
3
+ [ ![ Maven Central] ( https://img.shields.io/maven-central/v/dev.adamko.txstsgen/kxs-ts-gen-core?style=flat-square )] ( https://search.maven.org/search?q=g:dev.adamko.txstsgen )
4
+ [ ![ ] ( https://jitpack.io/v/adamko-dev/kotlinx-serialization-typescript-generator.svg?style=flat-square )] ( https://jitpack.io/#adamko-dev/kotlinx-serialization-typescript-generator )
2
5
3
6
# Kotlinx Serialization TypeScript Generator
4
7
@@ -35,7 +38,7 @@ export interface MyClass {
35
38
}
36
39
```
37
40
38
- Only Kotlinx Serialization
41
+ Only Kotlinx Serialization
39
42
[ ` SerialDescriptor ` s] ( https://kotlin.github.io/kotlinx.serialization/kotlinx-serialization-core/kotlinx.serialization.descriptors/-serial-descriptor/index.html )
40
43
are used to generate TypeScript. They are flexible and comprehensive enough to allow for accurate TypeScript code, without any deviation.
41
44
Original file line number Diff line number Diff line change @@ -12,12 +12,14 @@ plugins {
12
12
signing
13
13
}
14
14
15
- val sonatypeRepositoryCredentials: Provider <Action <PasswordCredentials >> = providers
16
- .credentials(PasswordCredentials ::class , " sonatypeRepository" )
17
- .map { credentials ->
15
+ val sonatypeRepositoryCredentials: Provider <Action <PasswordCredentials >> =
16
+ providers.zip(
17
+ providers.gradleProperty(" sonatypeRepositoryUsername" ),
18
+ providers.gradleProperty(" sonatypeRepositoryPassword" ),
19
+ ) { user, pass ->
18
20
Action <PasswordCredentials > {
19
- username = credentials.username
20
- password = credentials.password
21
+ username = user
22
+ password = pass
21
23
}
22
24
}
23
25
@@ -60,6 +62,13 @@ tasks.matching {
60
62
}
61
63
62
64
65
+ // Gradle warns about some signing tasks using publishing task outputs without explicit
66
+ // dependencies. I'm not going to go through them all and fix them, so here's a quick safety check.
67
+ tasks.matching { it.name.startsWith(" publish" ) }.configureEach {
68
+ mustRunAfter(tasks.matching { it.name.startsWith(" sign" ) })
69
+ }
70
+
71
+
63
72
publishing {
64
73
if (sonatypeRepositoryCredentials.isPresent()) {
65
74
repositories {
Original file line number Diff line number Diff line change @@ -23,8 +23,7 @@ classgraph = "4.8.143"
23
23
24
24
gradleNodePlugin = " 3.3.0"
25
25
26
- # qoomonGitVersioning = "6.1.1" // bugged: https://github.com/qoomon/gradle-git-versioning-plugin/issues/76
27
- qoomonGitVersioning = " 5.2.0"
26
+ qoomonGitVersioning = " 6.1.2"
28
27
29
28
[libraries ]
30
29
You can’t perform that action at this time.
0 commit comments