exclude eth2-reference-tests from dist
diff --git a/LICENSE b/LICENSE
index 54513df..d12070a 100644
--- a/LICENSE
+++ b/LICENSE
@@ -329,6 +329,29 @@
 <http://creativecommons.org/publicdomain/zero/1.0/>
 
 ------------------------------------------------------------------------------------
+This product includes code (eth2-reference-tests/src/test/resources) from Ethereum 2.0 reference tests: https://github.com/ethereum/eth2.0-spec-tests
+This code is licensed under the MIT license:
+
+Copyright (c) 2019
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+------------------------------------------------------------------------------------
 This product includes code (eth-reference-tests/src/test/resources/tests) from Ethereum reference tests: https://github.com/ethereum/tests
 This code is licensed under the MIT license:
 Copyright 2014 Ethereum Foundation
diff --git a/build.gradle b/build.gradle
index eaefd42..b539938 100644
--- a/build.gradle
+++ b/build.gradle
@@ -45,6 +45,10 @@
   throw new GradleException("eth-reference-tests/src/test/resources/eth2.0-tests/README.md missing: please clone submodules (git submodule update --init --recursive)")
 }
 
+if (!file("${rootDir}/eth2-reference-tests/src/test/resources").exists()) {
+  throw new GradleException("${rootDir}/eth2-reference-tests/src/test/resources missing: please clone submodules (git submodule update --init --recursive)")
+}
+
 
 //////
 // Version numbering
@@ -326,7 +330,7 @@
     }
   }
 
-  if (project.name != 'eth-reference-tests' && project.name != 'dist') {
+  if (project.name != 'eth-reference-tests' && project.name != 'eth2-reference-tests' && project.name != 'dist') {
 
     artifacts {
       archives sourcesJar
@@ -537,6 +541,7 @@
   subprojects.each { p ->
     switch (p.name) {
       case 'eth-reference-tests':
+      case 'eth2-reference-tests':
       // ignore
         break
       case 'crypto':
@@ -553,7 +558,7 @@
 
 jar {
   subprojects.each { subproject ->
-    if (subproject.name != 'eth-reference-tests') {
+    if (subproject.name != 'eth-reference-tests' && subproject.name != 'eth2-reference-tests') {
       from subproject.configurations.archives.collect { it.path.endsWith('.jar') }.files.collect { zipTree(it) }
     }
   }
diff --git a/dist/build.gradle b/dist/build.gradle
index 98f7300..62277d4 100644
--- a/dist/build.gradle
+++ b/dist/build.gradle
@@ -44,7 +44,7 @@
       def libs = []
       def sources = []
       rootProject.subprojects.each { s ->
-        if (s.name != 'eth-reference-tests' && s.name != 'dist') {
+        if (s.name != 'eth-reference-tests' && s.name != 'eth2-reference-tests' && s.name != 'dist') {
           libs << s.signArchives.signatureFiles[0]
           sources << s.signArchives.signatureFiles[1]
           docs << s.signArchives.signatureFiles[2]