在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):nebula-plugins/nebula-project-plugin开源软件地址(OpenSource Url):https://github.com/nebula-plugins/nebula-project-plugin开源编程语言(OpenSource Language):Groovy 100.0%开源软件介绍(OpenSource Introduction):Nebula Project PluginProvides healthy defaults for a Gradle project. Currently adds:
If you prefer to use Gradle's Locking dependency versions mechanism, you can use Compatibilty notesThis plugin uses APIs that are not available on Gradle < 5.0. From v7.0.0, nebula-project-plugin supports only Gradle 5.0+ Nebula Facet PluginA routine pattern is wanting a new SourceSet with an accompanying Configuration for dependencies. We consider this another facet of your project and can be modeled via the Nebula Facet plugin. This plugin will create a SourceSet with the name provided, which extends the main SourceSet, and consequently it'll create configurations for compile and runtime, which extends from the parent SourceSet. Their "classes" task will be wired up to the build task. apply plugin: 'nebula.facet'
facets {
examples
performance
} The previous definition would make examples and performance SourceSets, so that code can go in facets {
functional {
parentSourceSet = 'test'
}
} That will cause the Test FacetsIf "Test" is in the facet name then a Test task will be created (though it will still inherit from the "main" SourceSet--use the above configuration to make the test facet extends from the test SourceSet). For example: facets {
integTest
} This will create a test task called facets {
integTest {
parentSourceSet = 'main'
testTaskName = 'integrationTest'
}
} Test facets may opt out of a dependency on the 'check' task by using facets {
integTest {
parentSourceSet = 'main'
testTaskName = 'integrationTest'
includeInCheckLifecycle = false
}
} Nebula IntegTest PluginA corrolary from the Facet Plugin is a concrete Facet, this plugin provides one specifically for Integration Tests. By applying this plugin, you'll get an apply plugin: 'nebula.integtest' Alternatively, the task can be a standalone task that isn't depended on by apply plugin: 'nebula.integtest-standalone' |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论