Skip to content

Commit af8aead

Browse files
committed
Add dota protos
1 parent 231da8f commit af8aead

40 files changed

Lines changed: 18461 additions & 3 deletions

javasteam-dota2/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

javasteam-dota2/build.gradle.kts

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
plugins {
2+
alias(libs.plugins.protobuf.gradle)
3+
id("java")
4+
id("maven-publish")
5+
id("signing")
6+
}
7+
8+
repositories {
9+
mavenCentral()
10+
}
11+
12+
java {
13+
sourceCompatibility = JavaVersion.toVersion(libs.versions.java.get())
14+
targetCompatibility = JavaVersion.toVersion(libs.versions.java.get())
15+
withSourcesJar()
16+
withJavadocJar()
17+
}
18+
19+
/* Protobufs */
20+
protobuf.protoc {
21+
artifact = libs.protobuf.protoc.get().toString()
22+
}
23+
24+
/* Java Docs */
25+
tasks.javadoc {
26+
exclude("**/in/dragonbra/javasteam/protobufs/**")
27+
}
28+
29+
dependencies {
30+
implementation(libs.protobuf.java)
31+
}
32+
33+
/* Artifact publishing */
34+
publishing {
35+
publications {
36+
create<MavenPublication>("mavenJava") {
37+
from(components["java"])
38+
pom {
39+
name = "JavaSteam-dota2"
40+
packaging = "jar"
41+
description = "Dota classes for JavaSteam."
42+
url = "https://github.com/Longi94/JavaSteam"
43+
inceptionYear = "2025"
44+
scm {
45+
connection = "scm:git:git://github.com/Longi94/JavaSteam.git"
46+
developerConnection = "scm:git:ssh://github.com:Longi94/JavaSteam.git"
47+
url = "https://github.com/Longi94/JavaSteam/tree/master"
48+
}
49+
licenses {
50+
license {
51+
name = "MIT License"
52+
url = "https://www.opensource.org/licenses/mit-license.php"
53+
}
54+
}
55+
developers {
56+
developer {
57+
id = "Longi"
58+
name = "Long Tran"
59+
email = "lngtrn94@gmail.com"
60+
}
61+
}
62+
}
63+
}
64+
}
65+
}
66+
67+
signing {
68+
sign(publishing.publications["mavenJava"])
69+
}

0 commit comments

Comments
 (0)