GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — freshli-agent-java/build.gradle.kts at main · corgibytes/freshli-agent-java

Expand file tree

/

build.gradle.kts

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
108 lines (92 loc) · 3.15 KB
/

build.gradle.kts

Copy path

File metadata and controls

108 lines (92 loc) · 3.15 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import com.google.protobuf.gradle.id
import com.google.protobuf.gradle.protobuf
import org.gradle.kotlin.dsl.invoke
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.10"
id("com.google.protobuf") version "0.9.4"
idea
application
}
group = "com.corgibytes"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
val grpcVersion: String by project
val protobufVersion: String by project
val grpcKotlinVersion: String by project
dependencies {
implementation("com.github.ajalt.clikt:clikt:4.2.0")
implementation("com.corgibytes:dependency-history-maven:2.0.47")
implementation("com.github.package-url:packageurl-java:1.4.1")
implementation("org.apache.maven:maven-model:3.9.4")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
implementation("com.github.pgreze:kotlin-process:1.4.1")
implementation("com.github.oshi:oshi-core:6.4.5")
runtimeOnly("org.slf4j:slf4j-simple:2.0.9")
api("io.grpc:grpc-stub:$grpcVersion")
api("io.grpc:grpc-protobuf:$grpcVersion")
api("io.grpc:grpc-services:$grpcVersion")
runtimeOnly("io.grpc:grpc-netty:$grpcVersion")
api("com.google.protobuf:protobuf-java-util:$protobufVersion")
api("com.google.protobuf:protobuf-kotlin:$protobufVersion")
api("io.grpc:grpc-kotlin-stub:$grpcKotlinVersion")
api("com.google.protobuf:protobuf-gradle-plugin:0.9.4")
testImplementation(kotlin("test"))
}
sourceSets {
val main by getting { }
main.java.srcDirs("build/generated/source/proto/main/java")
main.java.srcDirs("build/generated/source/proto/main/grpc")
main.java.srcDirs("build/generated/source/proto/main/kotlin")
main.java.srcDirs("build/generated/source/proto/main/grpckt")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
// based on https://stackoverflow.com/a/32089746/243215
// If the line that sets the classpath gets too long, then the bat file generates an error message.
// This works around the issue by using lib\* in the classpath.
tasks.withType<CreateStartScripts> {
doLast {
val winScriptFile = file(windowsScript)
var winFileText = winScriptFile.readText()
winFileText = winFileText.replace(Regex("set CLASSPATH=.*"), "rem original CLASSPATH declaration replaced by:\nset CLASSPATH=%APP_HOME%\\\\lib\\\\\\*")
winScriptFile.writeText(winFileText)
}
}
application {
mainClass.set("com.corgibytes.freshli.agent.java.MainKt")
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:$protobufVersion"
}
plugins {
id("grpc") {
artifact = "io.grpc:protoc-gen-grpc-java:$grpcVersion"
}
id("grpckt") {
artifact = "io.grpc:protoc-gen-grpc-kotlin:$grpcKotlinVersion:jdk8@jar"
}
}
generateProtoTasks {
all().forEach {
it.plugins {
id("grpc")
id("grpckt")
}
it.builtins {
id("kotlin")
}
}
}
}
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.