Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relational-rags
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JastAdd
relational-rags
Merge requests
!1
Mquat2
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Mquat2
mquat2
into
master
Overview
0
Commits
49
Pipelines
1
Changes
224+
Merged
Johannes Mey
requested to merge
mquat2
into
master
6 years ago
Overview
0
Commits
49
Pipelines
1
Changes
224
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
3872f912
49 commits,
6 years ago
224+ files
+
9748
−
42379
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
224+
Some changes are not shown.
For a faster browsing experience, only
224 of 224+
files are shown. Download one of the files below to see all changes.
Plain diff
Patches
buildSrc/src/main/java/org/jastadd/relast/plugin/RelastPlugin.java
0 → 100644
+
33
−
0
View file @ 3872f912
Edit in single-file editor
Open in Web IDE
package
org.jastadd.relast.plugin
;
import
org.gradle.api.Plugin
;
import
org.gradle.api.Project
;
import
org.gradle.api.Task
;
import
org.gradle.api.tasks.TaskCollection
;
import
java.util.Set
;
/**
* Plugin for RelAst-Test.
*
* @author rschoene - Initial contribution
*/
public
class
RelastPlugin
implements
Plugin
<
Project
>
{
private
Task
testTask
;
@Override
public
void
apply
(
Project
project
)
{
Set
<
Task
>
tasks
=
project
.
getTasksByName
(
"test"
,
false
);
// there should be only one task "test"
testTask
=
tasks
.
iterator
().
next
();
TaskCollection
<
RelastTest
>
relastTests
=
project
.
getTasks
().
withType
(
RelastTest
.
class
);
relastTests
.
forEach
(
this
::
setupRelastTest
);
relastTests
.
whenTaskAdded
(
this
::
setupRelastTest
);
}
private
void
setupRelastTest
(
RelastTest
relastTest
)
{
testTask
.
dependsOn
(
relastTest
);
relastTest
.
setGroup
(
"verification"
);
}
}
Loading