Skip to content

Commit

Permalink
chore: Cleanup build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rholshausen committed Nov 22, 2024
1 parent 140915c commit b11433e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ java {
sourceCompatibility = '17'
}

tasks.withType(JavaCompile).configureEach {
options.deprecation = true
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "17"
Expand Down
7 changes: 5 additions & 2 deletions pact-jvm-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ plugins {
}

group = 'au.com.dius.pact'
mainClassName = 'au.com.dius.pact.server.PactJvmServer'

application {
mainClass.set('au.com.dius.pact.server.PactJvmServer')
}

dependencies {
implementation project(':consumer')
Expand Down Expand Up @@ -33,7 +36,7 @@ dependencies {
}

jar {
manifest.attributes 'Main-Class': mainClassName,
manifest.attributes 'Main-Class': application.mainClass.get(),
'Class-Path': configurations.compileClasspath.collect { it.getName() }.join(' ')
}

Expand Down

0 comments on commit b11433e

Please sign in to comment.