Skip to content

Commit

Permalink
add java dependency only when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amircodota committed Dec 10, 2023
1 parent 0bed083 commit 0cc44be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build & Test
run: ./gradlew build --scan
run: ./gradlew build --scan -PtestMode=true
- if: always()
name: Publish Test Report
uses: scacap/action-surefire-report@v1
Expand Down
4 changes: 3 additions & 1 deletion Tabnine/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@ test {
}
}

def neededPlugins = project.hasProperty('testMode') ? ['java'] : []

intellij {
version = '2020.2'
type = 'IC'
updateSinceUntilBuild = false
pluginName = 'TabNine'
plugins = ['java']
plugins = neededPlugins
}

def PRODUCTION_CHANNEL = null
Expand Down

0 comments on commit 0cc44be

Please sign in to comment.