Skip to content
Merged

- #1

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
set(VCPKG_C_FLAGS_DEBUG "/D_ITERATOR_DEBUG_LEVEL=0")
set(VCPKG_CXX_FLAGS_DEBUG "/D_ITERATOR_DEBUG_LEVEL=0")

add_definitions(-w)

include_directories(${INCLUDES})
link_libraries(${JNI_LIBRARIES})
add_library(total_computers_dll SHARED ${SOURCE_FILES})
Expand Down
67 changes: 57 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
plugins {
id 'java'
id 'maven-publish'
id 'signing'
}

group "com.jnngl"
version '0.9.2b3'
archivesBaseName = "totalcomputers"
version '0.9.2b5'


compileJava {
options.encoding = "UTF-8"
Expand All @@ -28,7 +31,7 @@ repositories {

dependencies {
compileOnly 'org.spigotmc:spigot-api:1.18.2-R0.1-SNAPSHOT'
compileOnly 'io.netty:netty-all:4.1.76.Final'
compileOnly 'io.netty:netty-all:4.1.77.Final'
implementation 'org.eclipse.jetty:jetty-server:11.0.9'
implementation 'org.eclipse.jetty:jetty-util:11.0.9'
implementation 'org.eclipse.jetty.aggregate:jetty-all-server:8.2.0.v20160908'
Expand Down Expand Up @@ -56,6 +59,15 @@ dependencies {
compileOnly 'com.google.guava:guava:31.1-jre'
}

java {
withJavadocJar()
withSourcesJar()
}

artifacts {
archives javadocJar, sourcesJar
}

jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from sourceSets.main.output
Expand All @@ -71,19 +83,54 @@ jar {
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/JNNGL/TotalComputers")
url = "https://s01.oss.sonatype.org/content/repositories/releases/"
credentials {
username = 'JNNGL'
password = project.properties['TCMP_TOKEN']
username = project.properties['ossrhUsername']
password = project.properties['ossrhPassword']+'#'
}
}
}

publications {
gpr(MavenPublication) {
from(components.java)
groupId 'com.jnngl'
artifactId 'totalcomputers'
mavenJava(MavenPublication) {
groupId = 'com.jnngl'
artifactId = 'totalcomputers'
version = '0.9.2b5'
from components.java

pom {
name = 'Total Computers'
description = 'Computers in vanilla Minecraft | TotalOS SDK'
url = 'https://jnngl.com/totalcomputers'

scm {
connection = 'scm:git:https://github.com/JNNGL/TotalComputers.git'
developerConnection = 'scm:git:https://github.com/JNNGL/TotalComputers.git'
url = 'https://github.com/JNNGL/TotalComputers'
}

licenses {
license {
name = 'The GNU General Public License, Version 3'
url = 'https://raw.githubusercontent.com/JNNGL/TotalComputers/main/LICENSE'
}
}

developers {
developer {
id = 'jnngl'
name = 'JNNGL'
email = 'jnngles@gmail.com'
}
}
}
}
}
}

signing {
sign configurations.archives
}
tasks.withType(Sign) {
onlyIf { project.properties['tcmp_sign'] == 'true' }
}
1 change: 1 addition & 0 deletions include/j_env.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#define J_ENV_H

#include <jni.h>
#include <cstdlib>

namespace tc {

Expand Down
1 change: 1 addition & 0 deletions include/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <memory>
#include <cstring>
#include <jni.h>
#include <cstdlib>

#include "object.h"

Expand Down
272 changes: 0 additions & 272 deletions javadoc/allclasses-index.html

This file was deleted.

80 changes: 0 additions & 80 deletions javadoc/allpackages-index.html

This file was deleted.

Loading
Loading