Skip to content

Commit

Permalink
Merge branch 'master' into remove-obsolete-dependency-tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
liblit authored Jan 15, 2024
2 parents dd3042b + f908bdd commit 34be2dc
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 26 deletions.
2 changes: 0 additions & 2 deletions build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@file:Suppress("UnstableApiUsage")

plugins {
`kotlin-dsl`
`kotlin-dsl-precompiled-script-plugins`
Expand Down
10 changes: 4 additions & 6 deletions build-logic/src/main/kotlin/com/ibm/wala/gradle/java.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@file:Suppress("UnstableApiUsage")

package com.ibm.wala.gradle

// Build configuration for subprojects that include Java source code.
Expand Down Expand Up @@ -28,7 +26,7 @@ repositories {
java.toolchain.languageVersion =
JavaLanguageVersion.of(property("com.ibm.wala.jdk-version") as String)

base.archivesName = "com.ibm.wala${project.path.replace(':', '.')}"
base.archivesName = "com.ibm.wala${path.replace(':', '.')}"

configurations {
resolvable("ecj")
Expand Down Expand Up @@ -108,15 +106,15 @@ tasks.named<Test>("test") {
}
}

if (project.hasProperty("excludeSlowTests")) {
if (hasProperty("excludeSlowTests")) {
dependencies { testImplementation(testFixtures(project(":core"))) }
tasks.named<Test>("test") { useJUnitPlatform { excludeTags("slow") } }
}

val ecjCompileTaskProviders =
sourceSets.map { sourceSet -> JavaCompileUsingEcj.withSourceSet(project, sourceSet) }

project.tasks.named("check") { dependsOn(ecjCompileTaskProviders) }
tasks.named("check") { dependsOn(ecjCompileTaskProviders) }

tasks.withType<JavaCompile>().configureEach {
options.run {
Expand Down Expand Up @@ -145,7 +143,7 @@ tasks.withType<JavaCompileUsingEcj>().configureEach {
// fixtures, we extend the main sourceSet to include all
// test-fixture sources too. This hack is only applied when
// WALA itself is an included build.
if (project.gradle.parent != null) {
if (gradle.parent != null) {
afterEvaluate {
sourceSets["main"].java.srcDirs(sourceSets["testFixtures"].java.srcDirs)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@file:Suppress("UnstableApiUsage")

package com.ibm.wala.gradle

plugins {
Expand Down Expand Up @@ -56,7 +54,7 @@ val mavenPublication =
}

pom {
name = project.properties["POM_NAME"] as String
name = property("POM_NAME") as String
description = "T. J. Watson Libraries for Analysis"
inceptionYear = "2006"
url = "https://github.com/wala/WALA"
Expand Down Expand Up @@ -128,17 +126,17 @@ val mavenRepository: MavenArtifactRepository =
url =
uri(
(if (isSnapshot)
project.properties.getOrDefault(
properties.getOrDefault(
"SNAPSHOT_REPOSITORY_URL",
"https://oss.sonatype.org/content/repositories/snapshots/")
else
project.properties.getOrDefault(
properties.getOrDefault(
"RELEASE_REPOSITORY_URL",
"https://oss.sonatype.org/service/local/staging/deploy/maven2/"))
as String)
credentials {
username = project.properties["SONATYPE_NEXUS_USERNAME"] as String?
password = project.properties["SONATYPE_NEXUS_PASSWORD"] as String?
username = properties["SONATYPE_NEXUS_USERNAME"] as String?
password = properties["SONATYPE_NEXUS_PASSWORD"] as String?
}
}

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ dependencies {
tasks.register<Javadoc>("aggregatedJavadocs") {
description = "Generate javadocs from all child projects as if they were a single project"
group = "Documentation"
destinationDir = layout.buildDirectory.dir("docs/javadoc").get().asFile
setDestinationDir(layout.buildDirectory.dir("docs/javadoc").get().asFile)
title = "${project.name} $version API"
(options as StandardJavadocDocletOptions).author(true)
classpath = aggregatedJavadocClasspath
Expand Down
2 changes: 0 additions & 2 deletions cast/java/ecj/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@file:Suppress("UnstableApiUsage")

plugins {
application
id("com.ibm.wala.gradle.eclipse-maven-central")
Expand Down
2 changes: 0 additions & 2 deletions cast/java/test/data/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@file:Suppress("UnstableApiUsage")

import com.ibm.wala.gradle.VerifiedDownload
import java.net.URI
import net.ltgt.gradle.errorprone.errorprone
Expand Down
2 changes: 0 additions & 2 deletions cast/js/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@file:Suppress("UnstableApiUsage")

import com.ibm.wala.gradle.CreatePackageList
import com.ibm.wala.gradle.VerifiedDownload
import java.net.URI
Expand Down
2 changes: 0 additions & 2 deletions cast/js/nodejs/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@file:Suppress("UnstableApiUsage")

import com.ibm.wala.gradle.VerifiedDownload
import java.net.URI

Expand Down
2 changes: 0 additions & 2 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@file:Suppress("UnstableApiUsage")

import com.ibm.wala.gradle.CompileKawaScheme
import com.ibm.wala.gradle.JavaCompileUsingEcj
import com.ibm.wala.gradle.VerifiedDownload
Expand Down

0 comments on commit 34be2dc

Please sign in to comment.