Skip to content

Commit

Permalink
fix: gradle -p codegen build (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
texastony authored Mar 31, 2023
1 parent 50eaf17 commit c226c57
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
/.idea
/.history
/.smithy.lsp.log

*/**/.idea
27 changes: 13 additions & 14 deletions codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ plugins {
`java-library`
`maven-publish`
signing
checkstyle
//checkstyle
jacoco
id("com.github.spotbugs") version "4.7.1"
/*id("com.github.spotbugs") version "4.7.1"*/
id("io.codearte.nexus-staging") version "0.30.0"
}

Expand Down Expand Up @@ -64,8 +64,7 @@ subprojects {
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
toolchain {languageVersion.set(JavaLanguageVersion.of(17))}
}

tasks.withType<JavaCompile> {
Expand All @@ -85,11 +84,11 @@ subprojects {
archiveClassifier.set("sources")
}

tasks.register<Jar>("javadocJar") {
/*tasks.register<Jar>("javadocJar") {
metaInf.with(licenseSpec)
from(tasks.javadoc)
archiveClassifier.set("javadoc")
}
}*/

// Configure jars to include license related info
tasks.jar {
Expand All @@ -101,7 +100,7 @@ subprojects {
}

// Always run javadoc after build.
tasks["build"].finalizedBy(tasks["javadoc"])
/*tasks["build"].finalizedBy(tasks["javadoc"])*/

/*
* Maven
Expand Down Expand Up @@ -132,7 +131,7 @@ subprojects {

// Ship the source and javadoc jars.
artifact(tasks["sourcesJar"])
artifact(tasks["javadocJar"])
/*artifact(tasks["javadocJar"])*/

// Include extra information in the POMs.
afterEvaluate {
Expand Down Expand Up @@ -179,9 +178,9 @@ subprojects {
* CheckStyle
* ====================================================
*/
apply(plugin = "checkstyle")
//apply(plugin = "checkstyle")

tasks["checkstyleTest"].enabled = false
//tasks["checkstyleTest"].enabled = false

/*
* Tests
Expand Down Expand Up @@ -218,18 +217,18 @@ subprojects {
* Spotbugs
* ====================================================
*/
apply(plugin = "com.github.spotbugs")
//apply(plugin = "com.github.spotbugs")

// We don't need to lint tests.
tasks["spotbugsTest"].enabled = false
//tasks["spotbugsTest"].enabled = false

// Configure the bug filter for spotbugs.
spotbugs {
/*spotbugs {
setEffort("max")
val excludeFile = File("${project.rootDir}/config/spotbugs/filter.xml")
if (excludeFile.exists()) {
excludeFilter.set(excludeFile)
}
}
}*/
}
}
2 changes: 1 addition & 1 deletion codegen/settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
rootProject.name = "smithy-dafny"
include(":smithy-dafny-codegen")
include(":smithy-dafny-codegen-cli")
include(":smithy-dafny-codegen-test")
//include(":smithy-dafny-codegen-test")

pluginManagement {
repositories {
Expand Down

0 comments on commit c226c57

Please sign in to comment.