Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into ppodsednik-changes
Browse files Browse the repository at this point in the history
# Conflicts:
#	build.gradle
#	gradle.properties
#	gradle/wrapper/gradle-wrapper.properties
  • Loading branch information
petrpodsed committed Nov 20, 2024
2 parents 0fb19c2 + 1d1c508 commit fe2620d
Show file tree
Hide file tree
Showing 20 changed files with 301 additions and 710 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/gradle-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '21'
distribution: 'temurin'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Build with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: build
run: ./gradlew build

14 changes: 9 additions & 5 deletions .github/workflows/gradle-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,19 @@ jobs:
password: ${{secrets.DOCKERHUB_TOKEN}}

- uses: actions/checkout@v3
- name: Set up JDK 11
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '11'
java-version: '21'
distribution: 'temurin'


- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Build with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: "clean build distZip jib"
run: ./gradlew build clean build distZip jib


- uses: actions/upload-artifact@v3
with:
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/gradle-scheduled.yml

This file was deleted.

21 changes: 13 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ allprojects {
//~ overwrite windows encoding
test {
systemProperty "file.encoding", "utf-8"

jvmArgs "--add-opens", "java.base/java.lang=ALL-UNNAMED",
"--add-opens", "java.base/java.lang.reflect=ALL-UNNAMED"
}

tasks.withType(JavaCompile) {
Expand Down Expand Up @@ -285,13 +288,20 @@ allprojects {
/**
* Distribution task; zipInstallDir first
*/
task distZip(type:Zip, dependsOn: 'zipInstallDir') {
task distZip(type:Zip, dependsOn: ['zipInstallDir', ':search:war', ':processes:migration:distZip']) {
description "Create full distribution zip"
archiveBaseName.set('kramerius')
group "Distribution"
// core war

// Nastavení závislosti na spuštění po `:search:war`
//finalizedBy ':search:war'

// core war
from {'search/build/libs'}
// migration tool

//inputs.files file('search/build/libs/search.war')

// migration tool
from {'processes/migration/build/distributions'}
// installation.zip
from {'build/installation/'}
Expand Down Expand Up @@ -330,8 +340,3 @@ task zipAllJavadocs(type: Zip) {
}
}

task printJavaVersion {
doLast {
println "Running on Java version: ${System.getProperty('java.version')}"
}
}
5 changes: 1 addition & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
group=cz.incad.kramerius
version=7.0.39-dev
org.gradle.caching=true
org.gradle.parallel=true
#org.gradle.configuration-cache=true
version=7.0.39
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Thu Jul 13 09:18:44 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-all.zip
Loading

0 comments on commit fe2620d

Please sign in to comment.