Skip to content

Commit cf05d94

Browse files
author
ADMSK\AVROGAL1
committed
docs: updates on documentation
Added informational and corporate documentation
1 parent 0061eea commit cf05d94

File tree

6 files changed

+125
-0
lines changed

6 files changed

+125
-0
lines changed

.github/dco.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Disable sign-off chcecking for members of the Gradle GitHub organization
2+
require:
3+
members: false

.github/release-drafter.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name-template: $NEXT_MINOR_VERSION
2+
tag-template: v$NEXT_MINOR_VERSION
3+
4+
categories:
5+
- title: 🚀 New features and improvements
6+
labels:
7+
- enhancement
8+
- title: 🐛 Bug Fixes
9+
labels:
10+
- bug
11+
- title: 🚦 Internal changes
12+
labels:
13+
- internal
14+
15+
exclude-labels:
16+
- no-changelog
17+
- duplicate
18+
- invalid
19+
20+
template: |
21+
$CHANGES
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Enforce PR labels for release drafter
2+
3+
on:
4+
pull_request:
5+
types: [ labeled, unlabeled, opened, edited, synchronize ]
6+
jobs:
7+
enforce-label:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: yogevbd/[email protected]
11+
with:
12+
REQUIRED_LABELS_ANY: "bug,enhancement,internal,no-changelog"
13+
REQUIRED_LABELS_ANY_DESCRIPTION: "Select at least one label ['bug','enhancement','internal','no-changelog'] for the PR"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package plugins
2+
3+
plugins {
4+
id("profiler.java-library")
5+
}
6+
7+
// These projects are packaged into the Gradle profiler Jar, so let's make them reproducible
8+
tasks.withType<Jar>().configureEach {
9+
isReproducibleFileOrder = true
10+
isPreserveFileTimestamps = false
11+
dirMode = Integer.parseInt("0755", 8)
12+
fileMode = Integer.parseInt("0644", 8)
13+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package plugins
2+
3+
import org.gradle.internal.os.OperatingSystem
4+
5+
plugins {
6+
id("java-library")
7+
}
8+
9+
repositories {
10+
jcenter()
11+
maven {
12+
url = uri("https://repo.gradle.org/gradle/repo")
13+
}
14+
}
15+
16+
java {
17+
toolchain {
18+
languageVersion.set(JavaLanguageVersion.of(8))
19+
}
20+
}
21+
22+
project.extensions.create<Versions>("versions")
23+
24+
abstract class Versions {
25+
val toolingApi = "org.gradle:gradle-tooling-api:6.6.1"
26+
val groovy = "org.codehaus.groovy:groovy:2.4.7"
27+
val spock = "org.spockframework:spock-core:1.1-groovy-2.4"
28+
}
29+
30+
tasks.withType<Test>().configureEach {
31+
// Add OS as inputs since tests on different OS may behave differently https://github.com/gradle/gradle-private/issues/2831
32+
// the version currently differs between our dev infrastructure, so we only track the name and the architecture
33+
inputs.property("operatingSystem", "${OperatingSystem.current().name} ${System.getProperty("os.arch")}")
34+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
package plugins
2+
3+
import java.net.URI
4+
5+
plugins {
6+
id("maven-publish")
7+
}
8+
9+
publishing {
10+
publications {
11+
register<MavenPublication>("mavenJava") {
12+
from(components["java"])
13+
pom {
14+
licenses {
15+
license {
16+
name.set("The Apache License, Version 2.0")
17+
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
18+
}
19+
}
20+
}
21+
}
22+
}
23+
24+
repositories {
25+
maven {
26+
name = "GradleBuildInternal"
27+
url = gradleInternalRepositoryUrl()
28+
credentials {
29+
username = project.findProperty("artifactoryUsername") as String?
30+
password = project.findProperty("artifactoryPassword") as String?
31+
}
32+
}
33+
}
34+
}
35+
36+
37+
fun Project.gradleInternalRepositoryUrl(): URI {
38+
val isSnapshot = property("profiler.version").toString().endsWith("-SNAPSHOT")
39+
val repositoryQualifier = if (isSnapshot) "snapshots" else "releases"
40+
return uri("https://repo.gradle.org/gradle/ext-$repositoryQualifier-local")
41+
}

0 commit comments

Comments
 (0)