Skip to content

Commit

Permalink
Move benchmarks to standalone submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
P3ridot committed Jul 29, 2023
1 parent 6d900eb commit 35007bd
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 43 deletions.
9 changes: 1 addition & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ plugins {
`maven-publish`
signing
jacoco
id("me.champeau.jmh") version "0.7.1"
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
}

Expand All @@ -15,7 +14,6 @@ description = "Dependency Injector|Parent"
allprojects {
apply(plugin = "java-library")
apply(plugin = "jacoco")
apply(plugin = "me.champeau.jmh")
apply(plugin = "signing")
apply(plugin = "maven-publish")

Expand Down Expand Up @@ -133,12 +131,6 @@ subprojects {
api("org.panda-lang:expressible:1.3.5")
compileOnly("org.jetbrains:annotations:24.0.1")

// Benchmarks
val jmh = 1.36
jmh("org.openjdk.jmh:jmh-core:$jmh")
jmh("org.openjdk.jmh:jmh-generator-annprocess:$jmh")
jmhAnnotationProcessor("org.openjdk.jmh:jmh-generator-annprocess:$jmh")

// Tests
val junit = "5.9.3"
testImplementation("org.junit.jupiter:junit-jupiter-api:$junit")
Expand Down Expand Up @@ -170,6 +162,7 @@ subprojects {
)
}
}

tasks.register("release") {
dependsOn(
"clean", "build",
Expand Down
19 changes: 19 additions & 0 deletions di-benchmarks/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
description = "Dependency Injector|Dependency Injector Benchmarks"

plugins {
id("me.champeau.jmh") version "0.7.1"
}

dependencies {
implementation(project(":di"))
implementation(project(":di-codegen"))

// Benchmark Tools
val jmh = 1.36
jmh("org.openjdk.jmh:jmh-core:$jmh")
jmh("org.openjdk.jmh:jmh-generator-annprocess:$jmh")
jmhAnnotationProcessor("org.openjdk.jmh:jmh-generator-annprocess:$jmh")
}

tasks.withType<PublishToMavenRepository>().configureEach { enabled = false }
tasks.withType<PublishToMavenLocal>().configureEach { enabled = false }

This file was deleted.

1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ rootProject.name = "di-parent"
include(
"di",
"di-codegen",
"di-benchmarks"
)

0 comments on commit 35007bd

Please sign in to comment.