You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polygene.apache.org by pa...@apache.org on 2017/01/09 17:57:22 UTC
[4/7] polygene-java git commit: POLYGENE-221 build: introduce
internal test-support project
POLYGENE-221 build: introduce internal test-support project
Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/7c3651f1
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/7c3651f1
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/7c3651f1
Branch: refs/heads/develop
Commit: 7c3651f1bd731a8118c537ced6cc39c60d44cf77
Parents: 6f23e55
Author: Paul Merlin <pa...@apache.org>
Authored: Mon Jan 9 18:39:32 2017 +0100
Committer: Paul Merlin <pa...@apache.org>
Committed: Mon Jan 9 18:56:58 2017 +0100
----------------------------------------------------------------------
.../apache/polygene/gradle/BasePlugin.groovy | 2 ++
.../dependencies/PolygeneExtension.groovy | 12 ++++++++++
internals/testsupport-internal/build.gradle | 25 ++++++++++++++++++++
.../apache/polygene/test/internal/package.html | 25 ++++++++++++++++++++
settings.gradle | 2 ++
5 files changed, 66 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/polygene-java/blob/7c3651f1/buildSrc/src/main/groovy/org/apache/polygene/gradle/BasePlugin.groovy
----------------------------------------------------------------------
diff --git a/buildSrc/src/main/groovy/org/apache/polygene/gradle/BasePlugin.groovy b/buildSrc/src/main/groovy/org/apache/polygene/gradle/BasePlugin.groovy
index 05f7610..6ba4f17 100644
--- a/buildSrc/src/main/groovy/org/apache/polygene/gradle/BasePlugin.groovy
+++ b/buildSrc/src/main/groovy/org/apache/polygene/gradle/BasePlugin.groovy
@@ -22,6 +22,7 @@ import org.apache.polygene.gradle.dependencies.PolygeneExtension
import org.apache.polygene.gradle.structure.release.ReleaseSpecPlugin
import org.gradle.api.Plugin
import org.gradle.api.Project
+import org.gradle.language.base.plugins.LifecycleBasePlugin
/**
* Plugin applied to all Polygene projects.
@@ -36,6 +37,7 @@ class BasePlugin implements Plugin<Project>
applyVersion project
project.plugins.apply ReleaseSpecPlugin
applyPolygeneExtension project
+ project.plugins.apply LifecycleBasePlugin
project.defaultTasks 'classes', 'test'
}
http://git-wip-us.apache.org/repos/asf/polygene-java/blob/7c3651f1/buildSrc/src/main/groovy/org/apache/polygene/gradle/dependencies/PolygeneExtension.groovy
----------------------------------------------------------------------
diff --git a/buildSrc/src/main/groovy/org/apache/polygene/gradle/dependencies/PolygeneExtension.groovy b/buildSrc/src/main/groovy/org/apache/polygene/gradle/dependencies/PolygeneExtension.groovy
index 435f278..e08a4ab 100644
--- a/buildSrc/src/main/groovy/org/apache/polygene/gradle/dependencies/PolygeneExtension.groovy
+++ b/buildSrc/src/main/groovy/org/apache/polygene/gradle/dependencies/PolygeneExtension.groovy
@@ -26,11 +26,13 @@ class PolygeneExtension
{
private final Project project
final Core core
+ final Internals internals
PolygeneExtension( Project project )
{
this.project = project
this.core = new Core()
+ this.internals = new Internals()
}
class Core
@@ -42,6 +44,11 @@ class PolygeneExtension
Dependency testsupport = core( 'testsupport' )
}
+ class Internals
+ {
+ Dependency testsupport = internal( 'testsupport-internal' )
+ }
+
private Dependency core( String name )
{
return dependency( 'core', name )
@@ -62,6 +69,11 @@ class PolygeneExtension
return dependency( 'tools', name )
}
+ Dependency internal( String name )
+ {
+ return dependency( 'internals', name )
+ }
+
private Dependency dependency( String group, String name )
{
project.dependencies.project( path: ":$group:$name" )
http://git-wip-us.apache.org/repos/asf/polygene-java/blob/7c3651f1/internals/testsupport-internal/build.gradle
----------------------------------------------------------------------
diff --git a/internals/testsupport-internal/build.gradle b/internals/testsupport-internal/build.gradle
new file mode 100644
index 0000000..5c0c2b3
--- /dev/null
+++ b/internals/testsupport-internal/build.gradle
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+apply plugin: 'polygene-internal'
+
+dependencies {
+ compile polygene.core.testsupport
+
+ runtime polygene.core.runtime
+}
http://git-wip-us.apache.org/repos/asf/polygene-java/blob/7c3651f1/internals/testsupport-internal/src/main/java/org/apache/polygene/test/internal/package.html
----------------------------------------------------------------------
diff --git a/internals/testsupport-internal/src/main/java/org/apache/polygene/test/internal/package.html b/internals/testsupport-internal/src/main/java/org/apache/polygene/test/internal/package.html
new file mode 100644
index 0000000..6288f30
--- /dev/null
+++ b/internals/testsupport-internal/src/main/java/org/apache/polygene/test/internal/package.html
@@ -0,0 +1,25 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ ~
+ ~
+ -->
+
+<html>
+<body>
+<h1>Polygene Internal TestSupport.</h1>
+</body>
+</html>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/polygene-java/blob/7c3651f1/settings.gradle
----------------------------------------------------------------------
diff --git a/settings.gradle b/settings.gradle
index 9044fd6..6858c4c 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -100,4 +100,6 @@ include 'core:api',
'samples:sql-support',
'samples:swing'
+include 'internals:testsupport-internal'
+
include 'manual', 'reports', 'distributions', 'release'