Browse Source

Upgrade javascripting version

Stan Hebben 6 years ago
parent
commit
88ca7c0fc1
2 changed files with 4 additions and 2 deletions
  1. 2
    2
      build.gradle
  2. 2
    0
      src/main/java/org/openzen/javascriptingexample/Globals.java

+ 2
- 2
build.gradle View File

16
 
16
 
17
 repositories {
17
 repositories {
18
     mavenCentral()
18
     mavenCentral()
19
-	maven { url "http://maven.openzen.org/" }
19
+	maven { url "https://maven.openzen.org/" }
20
 }
20
 }
21
 
21
 
22
 dependencies {
22
 dependencies {
23
-    compile 'org.openzen.zencode:zencode-javascripting:0.1.2'
23
+    compile 'org.openzen.zencode:zencode-javascripting:0.3.0'
24
 }
24
 }
25
 
25
 
26
 task fatJar(type: Jar) {
26
 task fatJar(type: Jar) {

+ 2
- 0
src/main/java/org/openzen/javascriptingexample/Globals.java View File

18
 public class Globals implements ZenCodeGlobals {
18
 public class Globals implements ZenCodeGlobals {
19
 	private static final Random RANDOM = new Random();
19
 	private static final Random RANDOM = new Random();
20
 	
20
 	
21
+	private Globals() {}
22
+	
21
 	@Global
23
 	@Global
22
 	public static void println(String message) {
24
 	public static void println(String message) {
23
 		System.out.println(message);
25
 		System.out.println(message);

Loading…
Cancel
Save