Skip to content

kaczynskid/java-groovy-scala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Info

This is a simple project trying to combine 3 languages. You can compile, package and run it to see that it is possible, at least to some extent. However the solution is not stable and clean and not recommended in commercial projects, as it surely does not cover all cases one would encounter with such a setup.

See this discussion for more details.

Compile & package

./mvn clean package

Running

java -jar target/polyglot-0.0.1-SNAPSHOT-jar-with-dependencies.jar

Expected result:

MyJavaClass x = 1
From MyGroovyClass x = 6
From MyScalaClass x = 6
MyGroovyClass x = 2
From MyJavaClass x = 7
From MyScalaClass x = 7
MyScalaClass x = 3
From MyJavaClass x = 8
From MyGroovyClass x = 8

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published