Skip to content

Commit

Permalink
Merge pull request #469 from jusjoken/master
Browse files Browse the repository at this point in the history
Changes to support a linux build to run on Java 8
  • Loading branch information
Narflex authored Jan 4, 2022
2 parents 3938eba + 78dd888 commit 008c642
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 15 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
build:

# runs-on: ubuntu-latest
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- name: Set up Oracle JDK 9
- name: Set up Oracle JDK 11
uses: actions/setup-java@v2
with:
java-version: '9'
java-version: '11'
distribution: 'adopt'
cache: gradle
- name: Update apt
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Change Log

## Version 9.2.7 (2022-01-03)
* Update to build process to support build on JDK 11 while supporting Java 8 dockers to run SageTV
* Added DirecTVTuner DLL for http tuning (Windows)

## Version 9.2.6 (2021-09-13)
Expand Down
21 changes: 11 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ repositories {
}

configurations {
miniclient.extendsFrom compile
miniclient.extendsFrom implementation
}

// Maybe someday we'll target >1.7 (hopefully)
Expand All @@ -69,6 +69,7 @@ sourceCompatibility = 1.7

compileJava {
options.warnings = false
options.compilerArgs.addAll(['--release', '8'])
//options.incremental = true
//options.debugOptions.debugLevel = "source,lines,vars"
}
Expand Down Expand Up @@ -125,25 +126,25 @@ sourceSets {
}

dependencies {
testCompile 'org.testng:testng:6.1.1'
testCompile "org.mockito:mockito-core:1.9.5"
testImplementation 'org.testng:testng:6.1.1'
testImplementation "org.mockito:mockito-core:1.9.5"

compile files(
implementation files(
'third_party/UPnPLib/sbbi-upnplib-1.0.3.jar',

'third_party/Oracle/vecmath.jar',
'third_party/Lucene/lucene-core-3.6.0.jar',
'third_party/JCIFS/jcifs-1.1.6.jar',
)

compile 'com.apple:AppleJavaExtensions:1.4'
compile "org.jogamp.jogl:jogl-all:$jogampVer"
compile "org.jogamp.gluegen:gluegen-rt-main:$jogampVer"
implementation 'com.apple:AppleJavaExtensions:1.4'
implementation "org.jogamp.jogl:jogl-all:$jogampVer"
implementation "org.jogamp.gluegen:gluegen-rt-main:$jogampVer"


// Miniclient dependencies for compiling
miniclientCompile "org.jogamp.gluegen:gluegen-rt-main:$jogampVer"
miniclientCompile "org.jogamp.jogl:jogl-all-main:$jogampVer"
miniclientImplementation "org.jogamp.gluegen:gluegen-rt-main:$jogampVer"
miniclientImplementation "org.jogamp.jogl:jogl-all-main:$jogampVer"
}

test {
Expand Down Expand Up @@ -275,7 +276,7 @@ task(linuxMiniClientRelease) {
from('build/so/libImageLoader.so')
from('build/elf/mplayer')

from(configurations.miniclientRuntime)
from(configurations.miniclientRuntimeClasspath)

into(miniclientReleaseDestinationDir)

Expand Down
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
#distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
2 changes: 1 addition & 1 deletion java/sage/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class Version
{
public static final byte MAJOR_VERSION = 9;
public static final byte MINOR_VERSION = 2;
public static final byte MICRO_VERSION = 6;
public static final byte MICRO_VERSION = 7;

public static final String VERSION = MAJOR_VERSION + "." + MINOR_VERSION + "." + MICRO_VERSION + "." + SageConstants.BUILD_VERSION;

Expand Down

2 comments on commit 008c642

@jusjoken
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is needed to cause this to create a new build..ie. Upload the new Deb to OpenSageTV?

@Narflex
Copy link
Member Author

@Narflex Narflex commented on 008c642 Jan 4, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The string "[ci release]" needs to appear in the commit message title for that to happen.

Please sign in to comment.