Skip to content

Commit

Permalink
More banging head against Gradle walls
Browse files Browse the repository at this point in the history
  • Loading branch information
cpurdy committed Jun 25, 2020
1 parent b207e47 commit e8a532c
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 11 deletions.
44 changes: 34 additions & 10 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,34 @@
# License Information #

The license for all source code (defined as ./bin/, ./resource/, ./src, ./tests, and ./xsrc) is Apache 2.0, unless explicitly noted. We chose Apache 2.0 for its compatibility with almost every reasonable use, and its compatibility with almost every license, reasonable or otherwise.

The license for documentation (defined as ./doc/, and the embedded markdown API documentation and/or derivative forms thereof) is Creative Commons CC-BY-4.0, unless explicitly noted.

To help ensure clean IP (which will help us keep this project free and open source), pull requests require a signed contributor agreement to be submitted in advance. We use the Apache contributor model agreements (modified to identify this specific project), which are located under the ./license directory. Contributors are required to sign and submit an Ecstasy Project Individual Contributor License Agreement (ICLA), or be a named employee on an Ecstasy Project Corporate Contributor License Agreement (CCLA), both derived directly from the Apache agreements of the same name.

The Ecstasy name is a trademark owned and administered by The Ecstasy Project. Unlicensed use of the Ecstasy trademark is prohibited and will constitute infringement.

All content of the project not covered by the above terms is probably an accident that we need to be made aware of, and remains (c) The Ecstasy Project, all rights reserved.
The license for all source code (including all Java and
Ecstasy source code in the project) is Apache 2.0, unless
explicitly noted. We chose Apache 2.0 for its compatibility
with almost every reasonable use, and its compatibility
with almost every license, reasonable or otherwise.

The license for documentationds (including the wiki and any
embedded API documentation and/or derivative forms thereof)
is Creative Commons CC-BY-4.0, unless explicitly noted.

To help ensure clean IP (which will help us keep this
project free and open source), pull requests require a
signed contributor agreement to be submitted in advance.
We use the Apache contributor model agreements (modified
to identify this specific project), which are located under
the ./license directory. Contributors are required to sign
and submit an Ecstasy Project Individual Contributor
License Agreement (ICLA), or be a named employee on an
Ecstasy Project Corporate Contributor License Agreement
(CCLA), both derived directly from the Apache agreements
of the same name.

The Ecstasy name is a trademark owned and administered by
The Ecstasy Project. Unlicensed use of the Ecstasy trademark
is prohibited and will constitute infringement.

All content of the project not covered by the above terms
is probably an accident that we need to be made aware of,
and remains (c) The Ecstasy Project, all rights reserved.

## Apache 2.0

Expand Down Expand Up @@ -615,4 +635,8 @@ All content of the project not covered by the above terms is probably an acciden

## Questions?

To submit a contributor agreement, sign up for very hard work, fork over a giant pile of cash, or in case of emergency: "info _at_ xtclang _dot_ org", but please understand if we cannot respond to every question. Thank you.
To submit a contributor agreement, sign up for very hard
work, fork over a giant pile of cash, or in case of
emergency: "info _at_ xtclang _dot_ org", but please
understand if we cannot respond to every question.
Thank you.
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
* Main build file for the XVM project, producing the XDK.
*/

group = "org.xvm"
version = "0.1.0"

plugins {
java
}
Expand Down
28 changes: 28 additions & 0 deletions javatools/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,31 @@ plugins {
java
}

sourceSets {
create("implicits") {
resources {
srcDir {
"${project(":ecstasy").buildDir}/resources/"
}
}
}
// sourceSets.create("integrationTest") {
// java.srcDir("src/integrationTest/java")
// java.srcDir("build/generated/source/apt/integrationTest")
// resources.srcDir("src/integrationTest/resources")
// }
// sourceSets.getByName("main") {
// java.srcDir("src/main/java")
// java.srcDir("src/main/kotlin")
// }
}

//def implicit = copySpec {
// from("${project(":ecstasy").buildDir}/resources/") {
// include "**/*.x"
// }
//}

tasks.withType(Jar::class) {
manifest {
attributes["Manifest-Version"] = "1.0"
Expand All @@ -19,6 +44,7 @@ tasks.withType(Jar::class) {
attributes["Implementation-Version"] = "0.1.0"
attributes["Implementation-Vendor"] = "xtclang.org"
}
with(implicit)
}

java {
Expand All @@ -27,6 +53,8 @@ java {
}

dependencies {
implementation("org.xtclang.xvm:utils:")

// Use JUnit test framework
testImplementation("junit:junit:4.12")
}
2 changes: 1 addition & 1 deletion javatools/src/main/java/org/xvm/compiler/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -4584,7 +4584,7 @@ NamedTypeExpression parseNamedTypeExpression()
if (tokNarrow != null && expr != null)
{
log(Severity.ERROR, NONNARROW_CHILD, tokNarrow.getStartPosition(),
tokNarrow.getEndPosition(), null);
tokNarrow.getEndPosition());
}

// TypeParameterTypeList
Expand Down
6 changes: 6 additions & 0 deletions javatools_launcher/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*
* Build file for the javatools_launcher project.
*
* The launcher programs need to be built on different hardware/OS combinations, so this project is
* not currently automated.
*/
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
rootProject.name = "xvm"

include(":utils") // produces utils.jar for org.xvm.utils package
include(":unicode") // produces data files -> :ecstasy/resources, only on request
include(":ecstasy") // produces *only* a source zip file (no .xtc), and only on request
Expand Down

0 comments on commit e8a532c

Please sign in to comment.