-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2493556
commit 301c171
Showing
27 changed files
with
127 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,58 +9,70 @@ plugins { | |
alias(libs.plugins.gradle.maven.publish) apply true | ||
alias(libs.plugins.detekt) apply true | ||
alias(libs.plugins.dokka) apply false | ||
signing | ||
} | ||
|
||
subprojects { | ||
apply<DokkaPlugin>() | ||
apply<MavenPublishPlugin>() | ||
|
||
group = "io.github.cleverlance.linguine" | ||
version = System.getenv("NEXT_VERSION") ?: "0.2.0" | ||
group = "com.qinshift.linguine" | ||
version = System.getenv("NEXT_VERSION") ?: "0.3.0" | ||
|
||
mavenPublishing { | ||
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true) | ||
signAllPublications() | ||
val isLocalPublish = project.gradle.startParameter.taskNames.any { it.contains("publishToMavenLocal") } | ||
|
||
pom { | ||
name = "Linguine" | ||
description = "Simplifies the localization process in Kotlin projects." | ||
inceptionYear = "2024" | ||
url = "https://github.com/cleverlance/linguine/" | ||
licenses { | ||
license { | ||
name = "The MIT License" | ||
url = "https://github.com/cleverlance/linguine/blob/main/license.md" | ||
distribution = "https://github.com/cleverlance/linguine/blob/main/license.md" | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = "RealDanie1" | ||
name = "Daniel Pecuch" | ||
url = "https://github.com/RealDanie1" | ||
} | ||
developer { | ||
id = "RadekKuzel" | ||
name = "Radek Kůžel" | ||
url = "https://github.com/RadekKuzel" | ||
if (!isLocalPublish) { | ||
apply<SigningPlugin>() | ||
|
||
|
||
extensions.configure<com.vanniktech.maven.publish.MavenPublishBaseExtension>("mavenPublishing") { | ||
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true) | ||
signAllPublications() | ||
|
||
pom { | ||
name.set("Linguine") | ||
description.set("Simplifies the localization process in Kotlin projects.") | ||
inceptionYear.set("2024") | ||
url.set("https://github.com/cleverlance/linguine/") | ||
licenses { | ||
license { | ||
name.set("The MIT License") | ||
url.set("https://github.com/cleverlance/linguine/blob/main/license.md") | ||
distribution.set("https://github.com/cleverlance/linguine/blob/main/license.md") | ||
} | ||
} | ||
developer { | ||
id = "JiriHromek" | ||
name = "Jiří Hromek" | ||
url = "https://github.com/JiriHromek" | ||
developers { | ||
developer { | ||
id.set("RealDanie1") | ||
name.set("Daniel Pecuch") | ||
url.set("https://github.com/RealDanie1") | ||
} | ||
developer { | ||
id.set("RadekKuzel") | ||
name.set("Radek Kůžel") | ||
url.set("https://github.com/RadekKuzel") | ||
} | ||
developer { | ||
id.set("JiriHromek") | ||
name.set("Jiří Hromek") | ||
url.set("https://github.com/JiriHromek") | ||
} | ||
developer { | ||
id.set("gerak-cz") | ||
name.set("Bořek Leikep") | ||
url.set("https://github.com/gerak-cz") | ||
} | ||
} | ||
developer { | ||
id = "gerak-cz" | ||
name = "Bořek Leikep" | ||
url = "https://github.com/gerak-cz" | ||
scm { | ||
url.set("https://github.com/cleverlance/linguine/") | ||
connection.set("scm:git:git://github.com/cleverlance/linguine.git") | ||
developerConnection.set("scm:git:ssh://git@github.com:cleverlance/linguine.git") | ||
} | ||
} | ||
scm { | ||
url = "https://github.com/cleverlance/linguine/" | ||
connection = "scm:git:git://github.com/cleverlance/linguine.git" | ||
developerConnection = "scm:git:ssh://[email protected]:cleverlance/linguine.git" | ||
} | ||
} | ||
} else { | ||
tasks.withType<Sign>().configureEach { | ||
enabled = false | ||
} | ||
} | ||
} | ||
|
@@ -84,7 +96,3 @@ tasks.withType<Detekt> { | |
} | ||
|
||
// endregion | ||
|
||
tasks.register<Delete>("clean") { | ||
delete(rootProject.layout.buildDirectory) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...guine/linguinegenerator/FileParserTest.kt → ...guine/linguinegenerator/FileParserTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...guine/linguinegenerator/FileWriterTest.kt → ...guine/linguinegenerator/FileWriterTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...inegenerator/filereader/FileReaderTest.kt → ...inegenerator/filereader/FileReaderTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../linguine/linguinegenerator/FileParser.kt → .../linguine/linguinegenerator/FileParser.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../linguine/linguinegenerator/FileWriter.kt → .../linguine/linguinegenerator/FileWriter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...guine/linguinegenerator/LinguineConfig.kt → ...guine/linguinegenerator/LinguineConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...guine/linguinegenerator/LinguinePlugin.kt → ...guine/linguinegenerator/LinguinePlugin.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...inguinegenerator/filereader/FileReader.kt → ...inguinegenerator/filereader/FileReader.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...-generator/src/main/kotlin/com/qinshift/linguine/linguinegenerator/filereader/FileType.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.qinshift.linguine.linguinegenerator.filereader | ||
|
||
enum class FileType { | ||
JSON | ||
} |
5 changes: 0 additions & 5 deletions
5
...r/src/main/kotlin/io/github/cleverlance/linguine/linguinegenerator/filereader/FileType.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.