Skip to content

Commit

Permalink
rev
Browse files Browse the repository at this point in the history
  • Loading branch information
teogor committed Nov 22, 2023
1 parent cc4ebc9 commit 46a4cec
Show file tree
Hide file tree
Showing 49 changed files with 1,980 additions and 321 deletions.
722 changes: 722 additions & 0 deletions .winds/resources/bom/1.0.0-alpha01/dependencies-1.0.0-alpha01.json

Large diffs are not rendered by default.

626 changes: 626 additions & 0 deletions .winds/resources/bom/1.0.0-alpha02/dependencies-1.0.0-alpha02.json

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions .winds/resources/bom/versions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"version": {
"major": 1,
"minor": 0,
"patch": 0,
"flag": "Alpha",
"versionQualifier": 1
},
"date": 1695925132
},
{
"version": {
"major": 1,
"minor": 0,
"patch": 0,
"flag": "Alpha",
"versionQualifier": 2
},
"date": 1696261957
}
]
34 changes: 9 additions & 25 deletions backup/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,21 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import com.vanniktech.maven.publish.SonatypeHost
import dev.teogor.ceres.gradle.plugins.CeresLibraryExtension
import dev.teogor.ceres.gradle.plugins.setModuleCoordinates
import dev.teogor.winds.api.model.createVersion

plugins {
id("dev.teogor.ceres.module")
alias(libs.plugins.winds)
}

ceresModule {
setModuleCoordinates(
artifactIdPrefix = "backup",
version = "1.0.0-alpha01",
)
}
winds {
mavenPublish {
displayName = "Backup"
name = "backup"

subprojects {
afterEvaluate {
val ceresLibrary = project.extensions.getByType(CeresLibraryExtension::class.java)
mavenPublishing {
publishToMavenCentral(SonatypeHost.S01)
signAllPublications()
artifactIdElements = 2

@Suppress("UnstableApiUsage")
pom {
coordinates(
groupId = ceresLibrary.groupId,
artifactId = ceresLibrary.artifactId!!,
version = ceresLibrary.version!!,
)
ceresLibrary.applyToMaven(this)
}
version = createVersion(1, 0, 0) {
alphaRelease(1)
}
}
}
8 changes: 6 additions & 2 deletions backup/core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ plugins {
id("dev.teogor.ceres.android.library")
id("dev.teogor.ceres.android.hilt")
id("kotlinx-serialization")
alias(libs.plugins.winds)
}

android {
Expand All @@ -36,6 +37,9 @@ dependencies {
implementation(libs.gson)
}

ceresLibrary {
name = "Ceres Backup Core"
winds {
mavenPublish {
displayName = "Core"
name = "core"
}
}
8 changes: 6 additions & 2 deletions backup/ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ plugins {
id("dev.teogor.ceres.android.library.jacoco")
id("dev.teogor.ceres.android.hilt")
id("kotlinx-serialization")
alias(libs.plugins.winds)
}

android {
Expand All @@ -28,6 +29,9 @@ android {
}
}

ceresLibrary {
name = "Ceres Backup UI"
winds {
mavenPublish {
displayName = "UI"
name = "ui"
}
}
41 changes: 11 additions & 30 deletions bom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,42 +13,23 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import com.vanniktech.maven.publish.SonatypeHost
import dev.teogor.ceres.gradle.plugins.CeresLibraryExtension
import dev.teogor.ceres.gradle.plugins.setIsBomModule
import dev.teogor.ceres.gradle.plugins.setModuleCoordinates
import dev.teogor.winds.api.model.createVersion

plugins {
id("java-platform")
id("dev.teogor.ceres.module")
alias(libs.plugins.winds)
}

ceresModule {
setModuleCoordinates(
artifactIdPrefix = "bom",
version = "1.0.0-alpha02",
)
winds {
mavenPublish {
displayName = "BoM"
name = "bom"

setIsBomModule()
}

afterEvaluate {
collectBomConstraints()
artifactIdElements = 1

val ceresLibrary = project.extensions.getByType(CeresLibraryExtension::class.java)
ceresLibrary.name = "Ceres BoM"
mavenPublishing {
publishToMavenCentral(SonatypeHost.S01)
signAllPublications()

@Suppress("UnstableApiUsage")
pom {
coordinates(
groupId = ceresLibrary.groupId,
artifactId = ceresLibrary.artifactId!!,
version = ceresLibrary.version!!,
)
ceresLibrary.applyToMaven(this)
version = createVersion(1, 0, 0) {
alphaRelease(2)
}

defineBoM()
}
}
99 changes: 95 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@

import com.vanniktech.maven.publish.SonatypeHost
import dev.teogor.winds.api.MavenPublish
import dev.teogor.winds.api.getValue
import dev.teogor.winds.api.model.DependencyType
import dev.teogor.winds.api.model.Developer
import dev.teogor.winds.api.model.LicenseType
import dev.teogor.winds.api.provider.Scm
import dev.teogor.winds.gradle.utils.afterWindsPluginConfiguration
import dev.teogor.winds.gradle.utils.attachTo
import org.jetbrains.dokka.gradle.DokkaTaskPartial

buildscript {
Expand All @@ -18,15 +28,96 @@ plugins {
alias(libs.plugins.hilt) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.about.libraries) apply false
alias(libs.plugins.vanniktech.maven) apply false

alias(libs.plugins.dokka)
alias(libs.plugins.spotless)
alias(libs.plugins.api.validator)
// alias(libs.plugins.winds) apply true
id("dev.teogor.winds")

alias(libs.plugins.vanniktech.maven) apply true
alias(libs.plugins.dokka) apply true
alias(libs.plugins.spotless) apply true
alias(libs.plugins.api.validator) apply true

id("dev.teogor.ceres.docs")
}

winds {
buildFeatures {
mavenPublish = true

docsGenerator = true
}

mavenPublish {
displayName = "Ceres"
name = "ceres"

canBePublished = false

description = "\uD83E\uDE90 Ceres is a comprehensive Android development framework designed to streamline your app development process. Powered by the latest technologies like Jetpack Compose, Hilt, Coroutines, and Flow, Ceres empowers developers to build modern and efficient Android applications."

groupId = "dev.teogor.ceres"
artifactIdElements = 2
url = "https://source.teogor.dev/ceres"

inceptionYear = 2022

sourceControlManagement(
Scm.Git(
owner = "teogor",
repo = "ceres",
),
)

addLicense(LicenseType.APACHE_2_0)

addDeveloper(TeogorDeveloper())
}

docsGenerator {
name = "Ceres"
identifier = "ceres"

excludeModules {
listOf(
":app",
)
}

dependencyGatheringType = DependencyType.LOCAL
}
}

afterWindsPluginConfiguration { winds ->
val mavenPublish: MavenPublish by winds
if (mavenPublish.canBePublished) {
mavenPublishing {
publishToMavenCentral(SonatypeHost.S01)
signAllPublications()

@Suppress("UnstableApiUsage")
pom {
coordinates(
groupId = mavenPublish.groupId!!,
artifactId = mavenPublish.artifactId!!,
version = mavenPublish.version!!.toString(),
)
mavenPublish attachTo this
}
}
}
}

data class TeogorDeveloper(
override val id: String = "teogor",
override val name: String = "Teodor Grigor",
override val email: String = "open-source@teogor.dev",
override val url: String = "https://teogor.dev",
override val roles: List<String> = listOf("Code Owner", "Developer", "Designer", "Maintainer"),
override val timezone: String = "UTC+2",
override val organization: String = "Teogor",
override val organizationUrl: String = "https://github.com/teogor",
) : Developer

val ktlintVersion = "0.50.0"

subprojects {
Expand Down
34 changes: 9 additions & 25 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,21 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import com.vanniktech.maven.publish.SonatypeHost
import dev.teogor.ceres.gradle.plugins.CeresLibraryExtension
import dev.teogor.ceres.gradle.plugins.setModuleCoordinates
import dev.teogor.winds.api.model.createVersion

plugins {
id("dev.teogor.ceres.module")
alias(libs.plugins.winds)
}

ceresModule {
setModuleCoordinates(
artifactIdPrefix = "core",
version = "1.0.0-alpha02",
)
}
winds {
mavenPublish {
displayName = "Core"
name = "core"

subprojects {
afterEvaluate {
val ceresLibrary = project.extensions.getByType(CeresLibraryExtension::class.java)
mavenPublishing {
publishToMavenCentral(SonatypeHost.S01)
signAllPublications()
artifactIdElements = 1

@Suppress("UnstableApiUsage")
pom {
coordinates(
groupId = ceresLibrary.groupId,
artifactId = ceresLibrary.artifactId!!,
version = ceresLibrary.version!!,
)
ceresLibrary.applyToMaven(this)
}
version = createVersion(1, 0, 0) {
alphaRelease(2)
}
}
}
8 changes: 6 additions & 2 deletions core/foundation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ plugins {
id("dev.teogor.ceres.android.library.compose")
id("dev.teogor.ceres.android.library.jacoco")
id("dev.teogor.ceres.android.hilt")
alias(libs.plugins.winds)
}

android {
Expand All @@ -32,6 +33,9 @@ dependencies {
api(libs.androidx.compose.runtime)
}

ceresLibrary {
name = "Ceres Core Foundation"
winds {
mavenPublish {
displayName = "Foundation"
name = "foundation"
}
}
8 changes: 6 additions & 2 deletions core/network/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ plugins {
id("dev.teogor.ceres.android.library")
id("dev.teogor.ceres.android.library.jacoco")
id("dev.teogor.ceres.android.hilt")
alias(libs.plugins.winds)
}

android {
Expand All @@ -31,6 +32,9 @@ dependencies {
implementation(libs.kotlinx.coroutines.android)
}

ceresLibrary {
name = "Ceres Core Network"
winds {
mavenPublish {
displayName = "Network"
name = "network"
}
}
8 changes: 6 additions & 2 deletions core/notifications/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ plugins {
id("dev.teogor.ceres.android.library.jacoco")
id("dev.teogor.ceres.android.hilt")
id("kotlinx-serialization")
alias(libs.plugins.winds)
}

android {
Expand All @@ -28,6 +29,9 @@ android {
}
}

ceresLibrary {
name = "Ceres Core Notifications"
winds {
mavenPublish {
displayName = "Notifications"
name = "notifications"
}
}
Loading

0 comments on commit 46a4cec

Please sign in to comment.