Skip to content

Commit 1f24b28

Browse files
committed
try 6
1 parent cf6cbb8 commit 1f24b28

File tree

1 file changed

+76
-42
lines changed

1 file changed

+76
-42
lines changed

build.gradle

Lines changed: 76 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ def javadocJarFor = { SourceSet set, String taskName, String name ->
6868
}
6969
}
7070

71-
// Fat jar tasks per source set
72-
tasks.register('runnerFatJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
73-
archiveClassifier.set('all')
74-
from sourceSets.runner.output
75-
configurations = [project.configurations.runnerRuntimeClasspath]
76-
}
77-
71+
// // Fat jar tasks per source set
72+
// tasks.register('runnerFatJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
73+
// archiveClassifier.set('all')
74+
// from sourceSets.runner.output
75+
// configurations = [project.configurations.runnerRuntimeClasspath]
76+
// }
77+
//
7878
// --- Jar tasks ---
7979
tasks.register("runnerJar", Jar) {
8080
archiveBaseName = "jvm-runner"
@@ -85,59 +85,93 @@ tasks.register("typesJar", Jar) {
8585
archiveBaseName = "types"
8686
from sourceSets.types.output
8787
}
88-
tasks.register("descriptorArtifact", Jar) {
89-
archiveBaseName = "index"
90-
archiveExtension = "ttl" // optional: makes the output index.ttl instead of index.jar
91-
from("index.ttl")
92-
}
93-
94-
// --- Sources/javadoc tasks ---
95-
sourcesJarFor(sourceSets.runner, "runner", "jvm-runner")
96-
sourcesJarFor(sourceSets.types, "types", "types")
97-
98-
javadocJarFor(sourceSets.runner, "runner", "jvm-runner")
99-
javadocJarFor(sourceSets.types, "types", "types")
88+
// tasks.register("descriptorArtifact", Jar) {
89+
// archiveBaseName = "index"
90+
// archiveExtension = "ttl" // optional: makes the output index.ttl instead of index.jar
91+
// from("index.ttl")
92+
// }
93+
94+
// // --- Sources/javadoc tasks ---
95+
// sourcesJarFor(sourceSets.runner, "runner", "jvm-runner")
96+
// sourcesJarFor(sourceSets.types, "types", "types")
97+
//
98+
// javadocJarFor(sourceSets.runner, "runner", "jvm-runner")
99+
// javadocJarFor(sourceSets.types, "types", "types")
100100

101101
// --- Publishing ---
102+
// publishing {
103+
// publications {
104+
// runner(MavenPublication) {
105+
//
106+
// artifact(tasks.named('runnerJar')){ builtBy tasks.named('runnerJar') }
107+
// // artifact tasks.runnerJavadocJar
108+
// groupId = project.group
109+
// artifactId = "jvm-runner"
110+
// version = project.version
111+
// }
112+
// types(MavenPublication) {
113+
// artifact(tasks.named('typesJar')){ builtBy tasks.named('typesJar') }
114+
// // artifact tasks.typesJavadocJar
115+
// groupId = project.group
116+
// artifactId = "types"
117+
// version = project.version
118+
// }
119+
// descriptor(MavenPublication) {
120+
// artifact(tasks.named("descriptorArtifact")) {
121+
// builtBy(tasks.named("descriptorArtifact"))
122+
// }
123+
// groupId = project.group
124+
// artifactId = "descriptor"
125+
// version = project.version
126+
// }
127+
// }
128+
// }
129+
//
130+
// publishToMavenLocal {
131+
// dependsOn runnerJar, typesJar
132+
// dependsOn runnerFatJar
133+
// dependsOn runnerSourcesJar, typesSourcesJar // , runnerJavadocJar
134+
// }
135+
136+
137+
// publishing {
138+
// publications {
139+
// mavenJava(MavenPublication) {
140+
// from components.java
141+
//
142+
// // publish descriptor
143+
// artifact(file('index.ttl')) {
144+
// classifier = 'index'
145+
// extension = 'ttl'
146+
// version = ""
147+
// }
148+
// }
149+
// }
150+
// }
151+
102152
publishing {
103153
publications {
104154
runner(MavenPublication) {
105-
106155
artifact(tasks.named('runnerJar')){ builtBy tasks.named('runnerJar') }
107-
// artifact tasks.runnerJavadocJar
108156
groupId = project.group
109-
artifactId = "jvm-runner"
157+
artifactId = 'jvm-runner'
110158
version = project.version
111159
}
112160
types(MavenPublication) {
113161
artifact(tasks.named('typesJar')){ builtBy tasks.named('typesJar') }
114-
// artifact tasks.typesJavadocJar
115-
groupId = project.group
116-
artifactId = "types"
117-
version = project.version
118-
}
119-
descriptor(MavenPublication) {
120-
artifact(tasks.named("descriptorArtifact")) {
121-
builtBy(tasks.named("descriptorArtifact"))
122-
}
123162
groupId = project.group
124-
artifactId = "descriptor"
163+
artifactId = 'types'
125164
version = project.version
126165
}
127166
}
128167
}
129168

130-
publishToMavenLocal {
131-
dependsOn runnerJar, typesJar
132-
dependsOn runnerFatJar
133-
dependsOn runnerSourcesJar, typesSourcesJar // , runnerJavadocJar
134-
}
169+
// build {
170+
// dependsOn runnerJar, typesJar
171+
// dependsOn runnerFatJar
172+
// dependsOn runnerSourcesJar, typesSourcesJar // , runnerJavadocJar
173+
// }
135174

136-
build {
137-
dependsOn runnerJar, typesJar
138-
dependsOn runnerFatJar
139-
dependsOn runnerSourcesJar, typesSourcesJar // , runnerJavadocJar
140-
}
141175
configurations.all {
142176
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
143177
}

0 commit comments

Comments
 (0)