Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 3 additions & 13 deletions CodeModel/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
// Note: "common.gradle" in the root project contains additional initialization
// for this project. This initialization is applied in the "build.gradle"
// of the root project.

// NetBeans will automatically add "run" and "debug" tasks relying on the
// "mainClass" property. You may however define the property prior executing
// tasks by passing a "-PmainClass=<QUALIFIED_CLASS_NAME>" argument.
//
// Note however, that you may define your own "run" and "debug" task if you
// prefer. In this case NetBeans will not add these tasks but you may rely on
// your own implementation.
if (!hasProperty('mainClass')) {
ext.mainClass = ''
plugins {
id 'zencode-common'
id 'zencode-publish'
}

dependencies {
Expand Down
20 changes: 3 additions & 17 deletions JavaAnnotations/build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
// Note: "common.gradle" in the root project contains additional initialization
// for this project. This initialization is applied in the "build.gradle"
// of the root project.

// NetBeans will automatically add "run" and "debug" tasks relying on the
// "mainClass" property. You may however define the property prior executing
// tasks by passing a "-PmainClass=<QUALIFIED_CLASS_NAME>" argument.
//
// Note however, that you may define your own "run" and "debug" task if you
// prefer. In this case NetBeans will not add these tasks but you may rely on
// your own implementation.
if (!hasProperty('mainClass')) {
ext.mainClass = ''
}

dependencies {
// no dependencies
plugins {
id 'zencode-common'
id 'zencode-publish'
}
20 changes: 5 additions & 15 deletions JavaBytecodeCompiler/build.gradle
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
// Note: "common.gradle" in the root project contains additional initialization
// for this project. This initialization is applied in the "build.gradle"
// of the root project.

// NetBeans will automatically add "run" and "debug" tasks relying on the
// "mainClass" property. You may however define the property prior executing
// tasks by passing a "-PmainClass=<QUALIFIED_CLASS_NAME>" argument.
//
// Note however, that you may define your own "run" and "debug" task if you
// prefer. In this case NetBeans will not add these tasks but you may rely on
// your own implementation.
if (!hasProperty('mainClass')) {
ext.mainClass = ''
plugins {
id 'zencode-common'
id 'zencode-publish'
}

dependencies {
api group: 'org.ow2.asm', name: 'asm', version: '9.3'
api group: 'org.ow2.asm', name: 'asm-commons', version: '9.3'
api libs.asm
api libs.asm.commons
api project(':CodeModel')
api project(':JavaShared')
}
16 changes: 3 additions & 13 deletions JavaIntegration/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
// Note: "common.gradle" in the root project contains additional initialization
// for this project. This initialization is applied in the "build.gradle"
// of the root project.

// NetBeans will automatically add "run" and "debug" tasks relying on the
// "mainClass" property. You may however define the property prior executing
// tasks by passing a "-PmainClass=<QUALIFIED_CLASS_NAME>" argument.
//
// Note however, that you may define your own "run" and "debug" task if you
// prefer. In this case NetBeans will not add these tasks but you may rely on
// your own implementation.
if (!hasProperty('mainClass')) {
ext.mainClass = ''
plugins {
id 'zencode-common'
id 'zencode-publish'
}

dependencies {
Expand Down
27 changes: 10 additions & 17 deletions JavaScripting/build.gradle
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
repositories {
mavenCentral()
}

dependencies {
implementation 'org.ow2.asm:asm-debug-all:6.0_BETA'
plugins {
id 'zencode-common'
id 'zencode-publish'
}

def javaScriptingProjects = [':JavaIntegration', ':JavaAnnotations', ':JavaBytecodeCompiler', ':JavaShared', ':Validator', ':Parser', ':CodeModel', ':Shared']
jar {
dependsOn javaScriptingProjects.collect { it + ":compileJava" }
from files(javaScriptingProjects.collect { project(it).sourceSets.main.output })
}
sourcesJar {
from files(javaScriptingProjects.collect { project(it).sourceSets.main.allSource })

dependencies {
implementation libs.asm.debug
javaScriptingProjects.each {
outputJava project(path: it, configuration: 'outputJava')
outputResources project(path: it, configuration: 'outputResources')
}
}
//install {
// repositories.mavenInstaller {
// pom.artifactId = 'zencode-javascripting'
// }
//}
2 changes: 0 additions & 2 deletions JavaScripting/configuration.gradle

This file was deleted.

16 changes: 3 additions & 13 deletions JavaShared/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
// Note: "common.gradle" in the root project contains additional initialization
// for this project. This initialization is applied in the "build.gradle"
// of the root project.

// NetBeans will automatically add "run" and "debug" tasks relying on the
// "mainClass" property. You may however define the property prior executing
// tasks by passing a "-PmainClass=<QUALIFIED_CLASS_NAME>" argument.
//
// Note however, that you may define your own "run" and "debug" task if you
// prefer. In this case NetBeans will not add these tasks but you may rely on
// your own implementation.
if (!hasProperty('mainClass')) {
ext.mainClass = ''
plugins {
id 'zencode-common'
id 'zencode-publish'
}

dependencies {
Expand Down
6 changes: 0 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,4 @@ pipeline {
}
}
}

post {
always {
archiveArtifacts '*/build/libs/**.jar'
}
}
}
16 changes: 3 additions & 13 deletions Parser/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
// Note: "common.gradle" in the root project contains additional initialization
// for this project. This initialization is applied in the "build.gradle"
// of the root project.

// NetBeans will automatically add "run" and "debug" tasks relying on the
// "mainClass" property. You may however define the property prior executing
// tasks by passing a "-PmainClass=<QUALIFIED_CLASS_NAME>" argument.
//
// Note however, that you may define your own "run" and "debug" task if you
// prefer. In this case NetBeans will not add these tasks but you may rely on
// your own implementation.
if (!hasProperty('mainClass')) {
ext.mainClass = ''
plugins {
id 'zencode-common'
id 'zencode-publish'
}

dependencies {
Expand Down
26 changes: 16 additions & 10 deletions ScriptingEngineTester/build.gradle
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
plugins {
id 'java'
id 'zencode-common'
}

group 'org.example'
version 'unspecified'

repositories {
mavenCentral()
configurations {
stdLibs {
canBeResolved = true
}
}

dependencies {
api project(':Shared')
implementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
implementation 'org.junit.platform:junit-platform-engine:1.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
implementation libs.jupiter.api
implementation libs.junit.platform.engine
testRuntimeOnly libs.jupiter.engine

stdLibs project(path: ":StdLibs", configuration: "zip")
}

processTestResources {
dependsOn(configurations.stdLibs)
from(configurations.stdLibs)
}

test {
useJUnitPlatform()
}
}
28 changes: 14 additions & 14 deletions ScriptingExample/build.gradle
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
// Note: "common.gradle" in the root project contains additional initialization
// for this project. This initialization is applied in the "build.gradle"
// of the root project.
plugins {
id 'zencode-common'
}

// NetBeans will automatically add "run" and "debug" tasks relying on the
// "mainClass" property. You may however define the property prior executing
// tasks by passing a "-PmainClass=<QUALIFIED_CLASS_NAME>" argument.
//
// Note however, that you may define your own "run" and "debug" task if you
// prefer. In this case NetBeans will not add these tasks but you may rely on
// your own implementation.
if (!hasProperty('mainClass')) {
ext.mainClass = 'org.openzen.zenscript.scriptingexample.Main'
}

configurations {
stdLibs {
canBeResolved = true
}
}

dependencies {
api project(':JavaIntegration')
testImplementation project(':ScriptingEngineTester')
testImplementation group: "org.junit.jupiter", name: "junit-jupiter", version: "5.9.0"
testRuntimeOnly group: "org.junit.jupiter", name: "junit-jupiter", version: "5.9.0"
testImplementation libs.jupiter
testRuntimeOnly libs.jupiter
stdLibs project(path: ":StdLibs", configuration: "zip")
}

processResources {
dependsOn(":StdLibs:zipItUp")
from files(evaluationDependsOn(":StdLibs").tasks.getByName("zipItUp").outputs)
dependsOn(configurations.stdLibs)
from(configurations.stdLibs)
}

test {
Expand Down
26 changes: 3 additions & 23 deletions Shared/build.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,4 @@
// Note: "common.gradle" in the root project contains additional initialization
// for this project. This initialization is applied in the "build.gradle"
// of the root project.

// NetBeans will automatically add "run" and "debug" tasks relying on the
// "mainClass" property. You may however define the property prior executing
// tasks by passing a "-PmainClass=<QUALIFIED_CLASS_NAME>" argument.
//
// Note however, that you may define your own "run" and "debug" task if you
// prefer. In this case NetBeans will not add these tasks but you may rely on
// your own implementation.
if (!hasProperty('mainClass')) {
ext.mainClass = ''
}

dependencies {
// TODO: Add dependencies here
// but note that JUnit should have already been added in parent.gradle.
// By default, only the Maven Central Repository is specified in
// parent.gradle.
//
// You can read more about how to add dependency here:
// http://www.gradle.org/docs/current/userguide/dependency_management.html#sec:how_to_declare_your_dependencies
plugins {
id 'zencode-common'
id 'zencode-publish'
}
2 changes: 1 addition & 1 deletion StdLibs
Submodule StdLibs updated 1 files
+33 −1 build.gradle
16 changes: 3 additions & 13 deletions Validator/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
// Note: "common.gradle" in the root project contains additional initialization
// for this project. This initialization is applied in the "build.gradle"
// of the root project.

// NetBeans will automatically add "run" and "debug" tasks relying on the
// "mainClass" property. You may however define the property prior executing
// tasks by passing a "-PmainClass=<QUALIFIED_CLASS_NAME>" argument.
//
// Note however, that you may define your own "run" and "debug" task if you
// prefer. In this case NetBeans will not add these tasks but you may rely on
// your own implementation.
if (!hasProperty('mainClass')) {
ext.mainClass = ''
plugins {
id 'zencode-common'
id 'zencode-publish'
}

dependencies {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Loading