Skip to content

Commit

Permalink
Merge pull request #322 from usefulness/renovate/com.project.starter-…
Browse files Browse the repository at this point in the history
…jvm-0.x
  • Loading branch information
mateuszkwiecinski authored Jun 14, 2022
2 parents a9bf6d4 + 1b953db commit 6d3b487
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 24 deletions.
14 changes: 5 additions & 9 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.dsl.KotlinCompile

plugins {
id 'java-gradle-plugin'
id "org.jmailen.kotlinter" version "3.10.0"
id 'org.jetbrains.kotlin.jvm' version '1.7.0'
}

repositories {
gradlePluginPortal()
alias(libs.plugins.jmailen.kotlinter)
alias(libs.plugins.kotlin.jvm)
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-gradle-plugin"
implementation "com.project.starter:jvm:0.45.0"
implementation(libs.kotlin.gradle)
implementation(libs.starter.gradle)
}

tasks.withType(KotlinCompile).configureEach {
Expand Down
14 changes: 14 additions & 0 deletions buildSrc/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import org.gradle.api.initialization.resolve.RepositoriesMode

dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
gradlePluginPortal()
google()
}
versionCatalogs {
create("libs") {
from(files("../gradle/libs.versions.toml"))
}
}
}
24 changes: 9 additions & 15 deletions easylauncher/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
plugins {
id "java-gradle-plugin"
id 'com.gradle.plugin-publish' version '0.21.0'
id 'com.starter.library.kotlin'
id 'pl.droidsonroids.jacoco.testkit' version '1.0.9'
id 'com.starter.publishing'
}

repositories {
mavenCentral()
gradlePluginPortal()
google()
alias(libs.plugins.gradle.publishplugin)
alias(libs.plugins.droidsonroids.jacocotestkit)
}

tasks.withType(Test).configureEach {
Expand Down Expand Up @@ -57,13 +51,13 @@ java {
}

dependencies {
implementation "org.codehaus.groovy:groovy-xml:${GroovySystem.getVersion()}"
runtimeOnly "com.github.usefulness:webp-imageio:0.2.1"
compileOnly "com.android.tools.build:gradle:7.2.1"
implementation("org.codehaus.groovy:groovy-xml:${GroovySystem.getVersion()}")
runtimeOnly(libs.usefulness.webp)
compileOnly(libs.agp.gradle)

testImplementation gradleTestKit()
testImplementation "org.assertj:assertj-core:3.23.1"
testImplementation "org.junit.jupiter:junit-jupiter:5.8.2"
testImplementation("org.junit.jupiter:junit-jupiter-params:5.8.2")
testImplementation "org.apache.commons:commons-lang3:3.12.0"
testImplementation(libs.junit.jupiter)
testImplementation(libs.assertj.core)
testImplementation(libs.junit.jupiter.params)
testImplementation(libs.apache.commons.lang3)
}
31 changes: 31 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[versions]
gradle-starter = "0.47.0"
gradle-kotlinter = "3.10.0"
gradle-gradlepublish = "0.21.0"
google-agp = "7.2.1"
gradle-jacocotestkit = "1.0.9"
gradle-detekt = "1.20.0"
mavencentral-kotlin = "1.7.0"
mavencentral-issuechecker = "0.3.0"
mavencentral-junit = "5.8.2"
mavencentral-assertj = "3.23.1"
mavencentral-apachecommons="3.12.0"
mavencentral-usefulnesswebp="0.2.1"

[libraries]
starter-gradle = { module = "com.project.starter:android", version.ref = "gradle-starter" }
agp-gradle = { module = "com.android.tools.build:gradle", version.ref = "google-agp" }
kotlin-gradle = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "mavencentral-kotlin" }
detekt-gradle = { module = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin", version.ref = "gradle-detekt" }
jmailen-kotlinter = { module = "org.jmailen.gradle:kotlinter-gradle", version.ref = "gradle-kotlinter" }
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "mavencentral-junit" }
junit-jupiter-params = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "mavencentral-junit" }
assertj-core = { module = "org.assertj:assertj-core", version.ref = "mavencentral-assertj" }
apache-commons-lang3 = { module = "org.apache.commons:commons-lang3", version.ref = "mavencentral-apachecommons" }
usefulness-webp = { module = "com.github.usefulness:webp-imageio", version.ref = "mavencentral-usefulnesswebp" }

[plugins]
jmailen-kotlinter = { id = "org.jmailen.kotlinter", version.ref = "gradle-kotlinter" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "mavencentral-kotlin" }
gradle-publishplugin = { id = "com.gradle.plugin-publish", version.ref = "gradle-gradlepublish" }
droidsonroids-jacocotestkit = { id = "pl.droidsonroids.jacoco.testkit", version.ref = "gradle-jacocotestkit" }
10 changes: 10 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
import org.gradle.api.initialization.resolve.RepositoriesMode

plugins {
id "com.gradle.enterprise" version "3.10.2"
}

rootProject.name = "com.project.starter"
include ':easylauncher'

dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
gradlePluginPortal()
google()
}
}

0 comments on commit 6d3b487

Please sign in to comment.