Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move source files to Gradle default locations #734

Merged
merged 2 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
111 changes: 0 additions & 111 deletions .classpath

This file was deleted.

132 changes: 0 additions & 132 deletions Makefile

This file was deleted.

36 changes: 2 additions & 34 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ var IN_JAR_JAVA_DOC_DIR = "$IN_JAR_DOC_DIR/javadoc"
var LOC_WS_SPEC = "$rootDir/workspace.spec"
var LOC_DOC_HTML = "$rootDir/docshtml"

// TODO NOW delete build.xml and Makefile - commit 8
// TODO NOW run tests from Eclipse w/o specifying classpath manually & remove sourceSets & claspath - commit 9
// TODO NOW update any ant refs in docs to gradle & the update schema script build & location

repositories {
Expand Down Expand Up @@ -239,10 +237,10 @@ task sdkCompileLibs {
}

task sdkCompileJava {
// TODO GRADLE is there a variable for src/main/java when we move the code locations?
// TODO GRADLE is there a variable for src/main/java?
var cmd = "kb-sdk compile " +
"--java " +
"--javasrc $rootDir/src " +
"--javasrc $rootDir/src/main/java/ " +
"--javasrv " +
"--out . " +
"--url $DEFAULT_URL " +
Expand Down Expand Up @@ -282,36 +280,6 @@ java -cp $buildDir/classes/java/main:\$CLASSPATH us.kbase.workspace.kbase.Schema
}
}

// Custom java project layout
sourceSets {
main {
java {
srcDirs = ["src"]
exclude '**/test/**'
}
}
test {
java {
srcDirs = ["src"]
include '**/test/**'
}
resources {
srcDirs = ["src"]
include "**/*.properties"
include '**/*.spec'
include '**/*instance.*'
include '**/*.instance*'
include '**/*.html'
include '**/*.css'
include '**/*.gif'
include '**/*.js'
include '**/*.png'
include '**/*.txt'
include '**/*.weirdsuffix'
}
}
}

configurations {
// can't directly access testImplementation, so extend and access
testimpl.extendsFrom testImplementation
Expand Down
Loading
Loading