- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for forNamespace (1 sec)
-
platforms/documentation/docs/src/samples/ide/problems-api-usage/kotlin/reporters/script-plugin/src/main/kotlin/reporters/script.plugin.gradle.kts
package reporters import org.gradle.api.internal.GradleInternal import org.gradle.kotlin.dsl.registering val gradleInternal = gradle as GradleInternal val problems = gradleInternal.services.get(Problems::class.java) problems.forNamespace("buildscript").reporting { id("adhoc-script-deprecation", "Deprecated script plugin") .contextualLabel("Deprecated script plugin 'demo-script-plugin'") .severity(Severity.WARNING)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 06 13:35:05 UTC 2024 - 1.4K bytes - Viewed (0) -
platforms/ide/problems-api/src/integTest/groovy/org/gradle/api/problems/ProblemsServiceIntegrationTest.groovy
given: withReportProblemTask """ try { problems.forNamespace("org.example.plugin").throwing { it.id('type1', 'inner') .withException(new RuntimeException("test")) } } catch (RuntimeException ex) { problems.forNamespace("org.example.plugin").rethrowing(ex) { it.id('type2', 'outer')
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 09:03:53 UTC 2024 - 11.1K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r86/ProblemProgressEventCrossVersionTest.groovy
} def "Problems expose summary Tooling API events"() { given: withReportProblemTask """ for(int i = 0; i < 10; i++) { problems.forNamespace("org.example.plugin").reporting {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 30 11:36:58 UTC 2024 - 7.9K bytes - Viewed (0) -
platforms/documentation/docs/src/samples/ide/problems-api-usage/groovy/reporters/script-plugin/src/main/groovy/reporters.script.plugin.gradle
import org.gradle.api.problems.Problems import org.gradle.api.problems.Severity def gradleInternal = gradle as GradleInternal def problems = gradleInternal.services.get(Problems) problems.forNamespace('buildscript').reporting { it.id('adhoc-script-deprecation', 'Deprecated script plugin') .contextualLabel("Deprecated script plugin 'demo-script-plugin'") .severity(Severity.WARNING)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 06 13:35:05 UTC 2024 - 1.3K bytes - Viewed (0) -
platforms/ide/problems-api/src/test/groovy/org/gradle/api/problems/internal/DefaultProblemsTestReport.groovy
def "using org.gradle core namespace is not allowed on the public API"() { def emitter = Mock(ProblemEmitter) given: def p = new DefaultProblems(emitter) when: p.forNamespace(DefaultProblemCategory.GRADLE_CORE_NAMESPACE) then: thrown(IllegalStateException) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Feb 11 15:31:37 UTC 2024 - 1.1K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r88/ProblemProgressEventCrossVersionTest.groovy
} @TargetGradleVersion(">=8.8 <8.9") def "Problems expose details via Tooling API events with failure"() { given: withReportProblemTask """ getProblems().forNamespace("org.example.plugin").reporting { it.id("id", "shortProblemMessage") $documentationConfig .lineInFileLocation("/tmp/foo", 1, 2, 3) $detailsConfig
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 10 07:55:25 UTC 2024 - 7.6K bytes - Viewed (0) -
platforms/documentation/docs/src/samples/templates/problems-api-usage/reporters/model-builder-plugin/src/main/java/reporters/ModelBuilder.java
public boolean canBuild(String modelName) { return DemoModel.class.getName().equals(modelName); } @Override public Object buildAll(String modelName, Project project) { problems.forNamespace("reporters.model.builder").reporting(problem -> problem .id("unused", "Demo model") .severity(Severity.WARNING) .details("This is a demo model and doesn't do anything useful") );
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 06 13:35:05 UTC 2024 - 928 bytes - Viewed (0) -
platforms/documentation/docs/src/samples/templates/problems-api-usage/reporters/standard-plugin/src/main/java/reporters/StandardPlugin.java
@Inject public StandardPlugin(Problems problems) { this.problems = problems; } @Override public void apply(Project target) { // tag::problems-api-report[] problems.forNamespace("reporters.standard.plugin").reporting(problem -> problem .id("adhoc-plugin-deprecation", "Plugin is deprecated") .contextualLabel("The 'standard-plugin' is deprecated")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 06 13:35:05 UTC 2024 - 1K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/developingPlugins/problemReporting/kotlin/buildSrc/src/main/java/org/myorg/ProblemReportingPlugin.java
private final ProblemReporter problemReporter; @Inject public ProblemReportingPlugin(Problems problems) { // <1> this.problemReporter = problems.forNamespace("org.myorg"); // <2> } public void apply(Project project) { this.problemReporter.reporting(builder -> builder // <3> .id("adhoc-deprecation", "Plugin 'x' is deprecated")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 06 13:35:05 UTC 2024 - 944 bytes - Viewed (0) -
platforms/ide/problems-api/src/main/java/org/gradle/api/problems/Problems.java
* * @return The problem reporter. * @since 8.6 */ ProblemReporter forNamespace(String namespace);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 02:21:10 UTC 2024 - 1.6K bytes - Viewed (0)