Skip to content
Closed
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- language: go
build-mode: manual
- language: java-kotlin
build-mode: autobuild
build-mode: manual
- language: javascript-typescript
build-mode: none
- language: python
Expand All @@ -82,6 +82,12 @@ jobs:
with:
go-version-file: 'sdks/go.mod'

- name: Setup environment for Java
if: matrix.language == 'java-kotlin'
uses: ./.github/actions/setup-environment-action
with:
java-version: default

# Add any setup steps before running the `github/codeql-action/init` action.
# This includes steps like installing compilers or runtimes (`actions/setup-node`
# or others). This is typically only required for manual builds.
Expand Down Expand Up @@ -123,6 +129,9 @@ jobs:

echo "Building learning/tour-of-beam/backend module..."
(cd learning/tour-of-beam/backend && go build ./cmd/... ./internal/... ./playground_api/...)
elif [ "${{ matrix.language }}" = "java-kotlin" ]; then
echo "Building Java classes for CodeQL analysis..."
./gradlew compileJava -x test -x check -PdisableSpotlessCheck=true -PdisableCheckStyle=true --no-daemon
else
echo "No manual build steps defined for ${{ matrix.language }}"
exit 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ class VendorJavaPlugin implements Plugin<Project> {

// plugin to support repository authentication via ~/.m2/settings.xml
// https://github.com/mark-vieira/gradle-maven-settings-plugin/
project.apply plugin: 'net.linguica.maven-settings'
if (isRelease(project) || project.hasProperty('publishing')) {
project.apply plugin: 'net.linguica.maven-settings'
}

// Projects should only depend on the shadowJar output
project.jar.enabled = false
Expand Down
Loading