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

Upgradle #147

Merged
merged 41 commits into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
3a42759
Streamline Actions
psibre Dec 8, 2022
127ab48
Upgradle to v7.5.1
psibre Dec 8, 2022
d955a17
Drop Java 13, add Java 17 in CI
psibre Dec 8, 2022
f687997
Rename CI Action
psibre Dec 8, 2022
5a5ac63
Tweak apt install step
psibre Dec 8, 2022
0c743f4
Don't fail fast in build matrix
psibre Dec 11, 2022
51cc0f5
Streamline source JAR build logic
psibre Dec 11, 2022
92001b1
Use version catalog to manage MaryTTS version
psibre Dec 11, 2022
eab28f0
DRY on project dir creation in GenerateBasenamesList functional test
psibre Dec 11, 2022
eacbe40
Refactor to create settings.gradle in functional test project dirs
psibre Dec 11, 2022
923c093
Fix running functional tests under build/tmp/test
psibre Dec 11, 2022
ee4845c
Streamline system properties for test task
psibre Dec 11, 2022
87f4a1a
Upgrade TestNG to latest version supporting Java 8
psibre Dec 11, 2022
95dba86
Upgrade JUnit to latest legacy release
psibre Dec 11, 2022
0e41e58
Upgrade MaryTTS to v5.2.1, related dependencies to latest release, re…
psibre Dec 13, 2022
9218d27
Require Gradle v7.0 or higher
psibre Dec 13, 2022
3367734
Fix Gradle deprecations
psibre Dec 13, 2022
285cca2
Fix main source compile test
psibre Dec 14, 2022
b39490b
Drop redundant dependencies
psibre Dec 15, 2022
59a0bf3
Streamline POM metadata generation
psibre Dec 15, 2022
97cf3ff
Add group to voicebuilding tasks
psibre Dec 15, 2022
f6c0ddd
Fix source generation logic, functional tests
psibre Dec 16, 2022
50b9a77
Fix dependency scope, POM generation functional test
psibre Dec 16, 2022
527633e
Drop redundant plugins
psibre Dec 16, 2022
a200c31
Tweak Groovy syntax, use Provider API
psibre Dec 16, 2022
abc9e1b
Trying to ignore duration == -1
Sep 20, 2020
7cf3d6f
Fix features/units pause misalaignment
Oct 15, 2020
495273d
Fix dependencies, POM metadata via configuration in afterEvaluate block
psibre Dec 18, 2022
ded4781
Upgrade to latest component plugin snapshot, resolve from OSSRH
psibre Dec 18, 2022
41bd084
Resolve latest marytts-voicebuilding snapshot from OSSRH
psibre Jan 11, 2023
64f45b3
Fix JavaExec errors under Java 17
psibre Jan 11, 2023
e4ed124
Upgrade marytts-voicebuilding to latest release
psibre Jan 11, 2023
36ad1b5
Upgradle to v7.6.3
psibre Jan 20, 2024
7e6948f
Upgrade Checkout action to v4.1.1
psibre Jan 21, 2024
db0ee09
Upgrade Setup Java action to v4.0.0
psibre Jan 23, 2024
adcf6b8
Upgrade Gradle build action to v2.12.0
psibre Jan 28, 2024
60f292d
Replace DFKI MLT repo for JTok
psibre Feb 21, 2024
a44d1af
Upgrade component plugin to v0.3.2
psibre Feb 22, 2024
54ce6cd
Upgrade TestNG to v7.5.1
psibre Feb 24, 2024
e40a19f
Upgradle to v7.6.4
psibre Oct 22, 2024
6be61f8
Install SoX in macOS environment GitHub Actions
psibre Oct 27, 2024
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
61 changes: 20 additions & 41 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: CI

on:
push:
Expand All @@ -14,57 +14,36 @@ jobs:
os:
- ubuntu-latest
- macos-latest
java-version:
java_version:
- 8
- 11
- 13
- 17
exclude:
- os: macos-latest
java_version: 8
- os: macos-latest
java_version: 13
java_version: 17
fail-fast: false
runs-on: ${{ matrix.os }}

steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v2
- uses: actions/[email protected]

# https://github.com/gradle/wrapper-validation-action
- uses: gradle/wrapper-validation-action@v1

# https://github.com/actions/setup-java
- uses: actions/setup-java@v2
with:
distribution: adopt
java-version: ${{ matrix.java-version }}

# https://github.com/actions/cache
- name: Cache Gradle packages
uses: actions/cache@v2
- uses: actions/[email protected]
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-

- name: Install Linux prerequisites
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt update
sudo apt -y install sox speech-tools
distribution: zulu
java-version: ${{ matrix.java_version }}

- name: Install macOS prerequisites
if: ${{ runner.os == 'macOS' }}
run: brew install speech-tools

- name: Build with Gradle
- if: runner.os == 'Linux'
env:
GRADLE_OPTS: -Dorg.gradle.daemon=false
run: ./gradlew build
DEBIAN_FRONTEND: noninteractive
run: >
sudo apt-get -qq update &&
sudo apt-get -qq install sox speech-tools

- if: runner.os == 'macOS'
run: brew install sox speech-tools

- name: Cleanup Gradle Cache
run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
rm -f ~/.gradle/caches/modules-2/gc.properties
- uses: gradle/[email protected]
with:
arguments: build --warning-mode all
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ Gradle MaryTTS voicebuilding plugin
- Plugin usage documented in readme
- Testing on OpenJDK 11 and 13

### Removed

- Support for Gradle versions older than v7.0

### Changed

- Migrate testing from Travis CI to GitHub Actions
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ plugins {
```
For details, see https://plugins.gradle.org/plugin/de.dfki.mary.voicebuilding-legacy.

Note that Gradle v6.2 or higher is required.
Note that Gradle v7.0 or higher is required.

Prerequisites
-------------
Expand Down
57 changes: 34 additions & 23 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,27 +58,49 @@ pluginBundle {
}

repositories {
jcenter()
gradlePluginPortal()
mavenCentral()
exclusiveContent {
forRepository {
maven {
name 'DFKI-MLT'
url 'https://raw.githubusercontent.com/DFKI-MLT/Maven-Repository/main'
}
}
filter {
includeGroup 'de.dfki.lt.jtok'
}
}
exclusiveContent {
forRepository {
gradlePluginPortal()
}
filter {
includeModule 'de.dfki.mary', 'gradle-marytts-component-plugin'
}
}
}

dependencies {
implementation localGroovy()
implementation group: 'de.dfki.mary', name: 'marytts-runtime', version: maryttsVersion, {
implementation group: 'de.dfki.mary', name: 'marytts-runtime', version: libs.versions.marytts.get(), {
exclude group: '*', module: 'groovy-all'
exclude group: '*', module: 'mwdumper'
exclude group: '*', module: 'sgt'
exclude group: 'com.twmacinta', module: 'fast-md5'
exclude group: 'gov.nist.math', module: 'Jampack'
}
implementation group: 'de.dfki.mary', name: 'gradle-marytts-component-plugin', version: '0.2.2'
implementation group: 'org.m2ci.msp', name: 'gradle-praat-wrapper-plugin', version: '0.6'
implementation group: 'org.m2ci.msp', name: 'jtgt', version: '0.6.1'
testImplementation group: 'org.testng', name: 'testng', version: '7.0.0'
implementation group: 'de.dfki.mary', name: 'gradle-marytts-component-plugin', version: '0.3.2'
implementation group: 'io.github.m2ci-msp', name: 'gradle-praat-wrapper-plugin', version: '0.7.0'
implementation group: 'io.github.m2ci-msp', name: 'jtgt', version: '0.7.0'
testImplementation group: 'org.testng', name: 'testng', version: '7.5.1'
testImplementation group: 'xmlunit', name: 'xmlunit', version: '1.6'
}

java {
withSourcesJar()
}

processResources {
doLast {
file("$destinationDir/maryttsVersion.txt").text = maryttsVersion
file("$destinationDir/maryttsVersion.txt").text = libs.versions.marytts.get()
}
}

Expand All @@ -94,25 +116,14 @@ test {
}
}
failFast = true
doFirst {
// path to shared testkit gradle home
systemProperty 'testProjectDir', temporaryDir
// dynamic marytts version
systemProperty 'maryVersion', maryttsVersion
}
}

task sourceJar(type: Jar) {
from sourceSets.main.allJava
systemProperty 'java.io.tmpdir', temporaryDir
systemProperty 'maryVersion', libs.versions.marytts.get()
}

publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourceJar {
classifier 'sources'
}
}
}
repositories {
Expand Down
1 change: 0 additions & 1 deletion gradle.properties

This file was deleted.

Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading