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

chore(deps): bump com.sun.xml.bind:jaxb-xjc from 2.3.4 to 4.0.2 #8

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "gradle" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
39 changes: 39 additions & 0 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: SonarCloud
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
jobs:
build:
name: Build and analyze
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache SonarCloud packages
uses: actions/cache@v1
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Gradle packages
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Test and Test Coverage
run: ./gradlew test jacocoTestReport --info -PenvIsCi=true
- name: Analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew sonarqube -PenvIsCi=true --info
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"java.configuration.updateBuildConfiguration": "automatic",
"java.format.settings.url": "docs_devel/docs/assets/eclipse-formatting.xml",
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "modificationsIfAvailable",
"editor.formatOnPaste": true,
}
17 changes: 15 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ plugins {
id 'com.diffplug.spotless' version '6.0.0'
id 'com.github.ben-manes.versions' version '0.39.0'
id 'ru.vyarus.mkdocs' version '3.0.0'
id "org.sonarqube" version "3.5.0.2730"
}

apply from: 'gradle/utils.gradle'
Expand Down Expand Up @@ -221,7 +222,7 @@ dependencies {
testRuntimeOnly "org.languagetool:language-pl:${languageToolVersion}"

// JAXB codegen only
jaxb 'com.sun.xml.bind:jaxb-xjc:2.3.4'
jaxb 'com.sun.xml.bind:jaxb-xjc:4.0.2'

testIntegrationImplementation sourceSets.main.output, sourceSets.test.output
}
Expand Down Expand Up @@ -824,7 +825,7 @@ allprojects {
}

spotbugs {
reportLevel = 'high'
// reportLevel = 'high'
}

tasks.findAll { it.name =~ /^spotbugs.*/ }.each {
Expand Down Expand Up @@ -1145,6 +1146,18 @@ mkdocs {
sourcesDir = 'docs_devel'
}

sonarqube {
properties {
property "sonar.projectKey", "omegat-sonar_omegat"
property "sonar.organization", "omegat-sonar"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.java.spotbugs.reportPaths", "build/reports/spotbugs/*.xmll"
property "sonar.java.checkstyle.reportPaths", "build/reports/checkstyle/*.xml"
property "sonar.coverage.jacoco.xmlReportPaths", "build/reports/jacoco/test/jacocoTestReport.xml"
property "sonar.java.source", "8"
}
}

// Allow setting the max heap size for the run task from the command line, e.g.
// `gradle -PrunMaxHeapSize=1024M run`
run.maxHeapSize = findProperty('runMaxHeapSize')
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.gradle.jvmargs=-Xmx4096m