Skip to content

Commit

Permalink
Use composite builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
nstdio committed Dec 25, 2022
1 parent f8b32f1 commit d459a70
Show file tree
Hide file tree
Showing 12 changed files with 141 additions and 14 deletions.
26 changes: 26 additions & 0 deletions build-logic/basics/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* Copyright (C) 2022 Edgar Asatryan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
`java-library`
`kotlin-dsl`
}

dependencies {
implementation("org.gradlex:extra-java-module-info:1.1")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0-RC2")
implementation("com.github.spotbugs.snom:spotbugs-gradle-plugin:5.0.13")
implementation("com.github.dpaukov:combinatoricslib3:3.3.3")
}
25 changes: 25 additions & 0 deletions build-logic/benchmark/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright (C) 2022 Edgar Asatryan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

plugins {
`java-library`
`kotlin-dsl`
}

dependencies {
implementation("me.champeau.jmh:jmh-gradle-plugin:0.6.8")
implementation("io.github.reyerizo.gradle:jcstress-gradle-plugin:0.8.14")
}
25 changes: 25 additions & 0 deletions build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright (C) 2022 Edgar Asatryan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

description = "Provides plugins that are used by subprojects"

subprojects {
repositories {
gradlePluginPortal()

mavenCentral()
}
}
34 changes: 34 additions & 0 deletions build-logic/publishing/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright (C) 2022 Edgar Asatryan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
`java-library`
`kotlin-dsl`
}

description = "Provides plugins that are used by Gradle subprojects"

dependencies {
implementation("io.github.gradle-nexus:publish-plugin:1.1.0")
implementation("net.researchgate:gradle-release:3.0.2")
implementation("net.researchgate:gradle-release:3.0.2")
implementation("se.bjurr.gitchangelog:git-changelog-gradle-plugin:1.77.0") {
isTransitive = false
}
implementation("se.bjurr.gitchangelog:git-changelog-lib:1.168.6") {
exclude("org.gitlab", "java-gitlab-api")
exclude("org.ow2.asm", "asm")
}
}
29 changes: 29 additions & 0 deletions build-logic/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* Copyright (C) 2022 Edgar Asatryan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

pluginManagement {
repositories {
gradlePluginPortal()

mavenCentral()
}
}

rootProject.name = "build-logic"

include("basics")
include("benchmark")
include("publishing")
14 changes: 0 additions & 14 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,5 @@ repositories {
}

dependencies {
implementation("org.gradlex:extra-java-module-info:1.1")
implementation("io.github.gradle-nexus:publish-plugin:1.1.0")
implementation("net.researchgate:gradle-release:3.0.2")
implementation("com.github.dpaukov:combinatoricslib3:3.3.3")
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0-RC2")
implementation("me.champeau.jmh:jmh-gradle-plugin:0.6.8")
implementation("se.bjurr.gitchangelog:git-changelog-gradle-plugin:1.77.0") {
isTransitive = false
}
implementation("se.bjurr.gitchangelog:git-changelog-lib:1.168.6") {
exclude("org.gitlab", "java-gitlab-api")
exclude("org.ow2.asm", "asm")
}
implementation("com.github.spotbugs.snom:spotbugs-gradle-plugin:5.0.13")
implementation("io.github.reyerizo.gradle:jcstress-gradle-plugin:0.8.14")
}
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
rootProject.name = "http-client-ext"

includeBuild("build-logic")

0 comments on commit d459a70

Please sign in to comment.