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

Non-Java JVM languages are not yet available on OS X #2316

Closed
BanzaiMan opened this Issue May 14, 2014 · 26 comments

Comments

Projects
None yet
10 participants
@BanzaiMan
Member

BanzaiMan commented May 14, 2014

This affects Groovy, Clojure and Scala.

@BanzaiMan BanzaiMan added mac and removed node.js labels May 14, 2014

@BanzaiMan BanzaiMan changed the title from Groovy is not yet available on OS X to Non-Java JVM languages are not yet available on OS X May 14, 2014

@BanzaiMan BanzaiMan added java labels May 14, 2014

@BanzaiMan

This comment has been minimized.

Member

BanzaiMan commented May 14, 2014

This ticket does not promise future availability.

@muuki88

This comment has been minimized.

muuki88 commented Jun 15, 2014

The sbt/sbt-native-packager project would love java/scala support on OSX. Keep up the awesome work!

@marscher

This comment has been minimized.

marscher commented Aug 17, 2014

+1 for python support on osx (maybe there are several python versions available on homebrew?)

@BanzaiMan

This comment has been minimized.

Member

BanzaiMan commented Aug 17, 2014

@marscher Python issue is tracked by #2312.

@JLLeitschuh

This comment has been minimized.

JLLeitschuh commented Nov 3, 2015

+1 For oraclejdk8 support on OSX. JavaFX can't do cross platform builds so I was hoping to have Travis's OSX OS build it for us

@stelfrich

This comment has been minimized.

stelfrich commented Nov 5, 2015

+1 for the same reasons as @JLLeitschuh!

@BanzaiMan

This comment has been minimized.

Member

BanzaiMan commented Jan 4, 2016

For a known version of Oracle JDK, you can do something like:

before_install:
  - "wget --no-cookies --no-check-certificate --header \"Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie\" http://download.oracle.com/otn-pub/java/jdk/8u66-b17/jdk-8u66-macosx-x64.dmg"
  - hdiutil mount jdk-8u66-macosx-x64.dmg
  - sudo installer -pkg /Volumes/JDK\ 8\ Update\ 66/JDK\ 8\ Update\ 66.pkg -target LocalSystem
@JLLeitschuh

This comment has been minimized.

JLLeitschuh commented Jan 4, 2016

@BanzaiMan
How can you do this if you want to use a build matrix? I want to build both OSX and Linux
For Linux the java switcher works fine

@BanzaiMan

This comment has been minimized.

Member

BanzaiMan commented Jan 4, 2016

@JLLeitschuh Check for $TRAVIS_OS_NAME value or the presence of the hdiutil command, and execute the above. It is probably easier if you put this logic in a script to execute it.

@JLLeitschuh

This comment has been minimized.

JLLeitschuh commented May 11, 2016

@BanzaiMan Is there a way to cache the download so that it doesn't need to be required for each build??
Having to download and install the oracle jdk8 every time is slowing down our build significantly.

bberenz added a commit to qzind/tray that referenced this issue Aug 23, 2016

Fix travis on Apple 2
Fix JDK8 compilation by using a newer XCode image
Per travis-ci/travis-ci#2316
@stephanmg

This comment has been minimized.

stephanmg commented Sep 8, 2016

Can one specify osx_image only for the OS osx?
Travis CI detectes otherwise for both Linux and OSX an XCode Language Project.

@gallandarakhneorg

This comment has been minimized.

gallandarakhneorg commented Sep 9, 2016

The configuration that does not detect Xcode for Linux is:

matrix:
  include:
    - os: linux
      jdk: oraclejdk8
    - os: osx
      osx_image: xcode8
@stephanmg

This comment has been minimized.

stephanmg commented Sep 12, 2016

Thanks @gallandarakhneorg.

However it detects now also correct if I don't use your build matrix.

Best

@jaredsburrows

This comment has been minimized.

jaredsburrows commented Sep 12, 2016

@stephanmg I get java8 using "xcode8":

matrix:
  include:
    - os: linux
      jdk: oraclejdk8
    - os: osx
      env: ANDROID_HOME=/usr/local/opt/android-sdk
      osx_image: xcode8

See: https://github.com/jaredsburrows/android-glide-giphy-example/blob/master/.travis.yml#L8

Android setting Java8 for Android:
https://github.com/jaredsburrows/android-glide-giphy-example/blob/master/build.gradle#L54

@stephanmg

This comment has been minimized.

stephanmg commented Sep 12, 2016

Ok @jaredsburrows I give this build matrix a shot,
previously I used:

os: 
   - linux
   - osx

osx_image: xcode8

But this seems wrong.

Update: This works - however now my OSX build times out.

@stephanmg

This comment has been minimized.

stephanmg commented Sep 14, 2016

Is there any chance that the build time may be increased for our project @BanzaiMan?
It's an open source science project. My OSX build times out at ~44 min, maybe 5 more minutes would be sufficient. I added osx_image: xcode8 as indicated above for Java 8 - but then my build takes much longer - is there another way to get Java 8?

bberenz added a commit to qzind/tray that referenced this issue Nov 28, 2016

Fix travis on Apple 2
Fix JDK8 compilation by using a newer XCode image
Per travis-ci/travis-ci#2316

mattsheppard pushed a commit to mattsheppard/gethostname4j that referenced this issue Jan 5, 2017

Gama11 added a commit to HSOAutonomy/formatting that referenced this issue Apr 2, 2017

bberenz added a commit to qzind/tray that referenced this issue Apr 26, 2017

Fix travis on Apple 2
Fix JDK8 compilation by using a newer XCode image
Per travis-ci/travis-ci#2316

@Jarlakxen Jarlakxen referenced this issue May 22, 2017

Merged

API cleanups #32

muuki88 added a commit to sbt/sbt-native-packager that referenced this issue Jul 9, 2017

muuki88 added a commit to sbt/sbt-native-packager that referenced this issue Jul 17, 2017

muuki88 added a commit to sbt/sbt-native-packager that referenced this issue Aug 7, 2017

muuki88 added a commit to sbt/sbt-native-packager that referenced this issue Aug 10, 2017

Cross build with sbt 1.0 (#1000)
* Cross build with sbt 1.0

* Fix travis.yml

* Fix Build.scala scripted tests

* Remove 'provided' scope for jdeb temporarily

* Fix dependencies for scripted tests

* Fix scripted test calls by using packageBin instead of package-bin

* Fix multiproject-classifiers test by using new `withClassifier` method.
This may break 0.13.6 -> add compat for this

* Replace all *** PathFilter calls in scripted tests

* Replace Process with sys.process.Process and add Compat.io import

* Fixing all remaining scripted tests

* Fix jdk-packager script tests

* Fix travis osx oraclejdk8 issue: travis-ci/travis-ci/issues/2316

* Reduce travis ci test matrix

* Update out-dated akka dependency in scripted test

* Replace akka with typesafe config as a dependency test

We need a stable library for scala 2.10 and 2.12. A java lib is
more suitable here.

* Fix wrong task names

* Replace akka with typesafe config as a dependency test

We need a stable library for scala 2.10 and 2.12. A java lib is
more suitable here.

* Polyfill new method `withClassifier` on sbt.Artifact

* Remove jdk definition

* List every test setup explicitly  for travis

* Also set env for the osx build

* Only use java8 for testing and output scripted buffer

* Another approach for travis

* Fix rpm scripted tests

* Rebase and fix newly added test

* Fix debian scripted tests

* Run only the script docker tests which don't require docker

* Fix validateJdkPackager and actually run the jdkpackacker scripts

* Explicitly include all the different envs in travis

* Remove jdkpackager/test-package-image scripted test on travis

* Upgrade to sbt-1.0.0-RC2 and use crossbuil

* Go back to M6 and switch-case the provided dependencies

* Run actual tests on MacOS X

* use sbtVersion in pluginCrossBuild and downgrade to sbt-io M11

* Fix scripted camelCase jdkpackager

* Try to upgrade to 1.0.0-RC2

* Build with 0.13.16

* Upgrade sbt-io

* Fix linting error for ivy configs

* Upgrade to 1.0.0-RC3

* Fix jar names in JavaAppPackaging. See sbt/sbt/issues/3388

* Formatting SettingsHelper

* Adding the correct moduleSettings

See sbt/librarymanagement/issues/154

* Upgrade scalafmt

* Upgrade sbt-release process

* Setting version to 1.2.2-RC1

* Setting version to 1.2.2-SNAPSHOT

bberenz added a commit to qzind/tray that referenced this issue Sep 1, 2017

Fix travis on Apple 2
Fix JDK8 compilation by using a newer XCode image
Per travis-ci/travis-ci#2316

dckc added a commit to dckc/rchain that referenced this issue Nov 23, 2017

.travis.yml: OSX JDK tweak
avoid `jdk_switcher: command not found`

known issue:

 - Non-Java JVM languages are not yet available on OS X #2316
   travis-ci/travis-ci#2316

bberenz added a commit to qzind/tray that referenced this issue Apr 7, 2018

Fix travis on Apple 2
Fix JDK8 compilation by using a newer XCode image
Per travis-ci/travis-ci#2316
@stale

This comment has been minimized.

stale bot commented Apr 14, 2018

Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment