Skip to content

Commit

Permalink
Publish to maven central
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecorry31 committed Dec 19, 2024
1 parent 74e1673 commit 752958f
Show file tree
Hide file tree
Showing 40 changed files with 13,664 additions and 37 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/publish.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

ADDITIONAL LICENSES FROM THIRD PARTY SOFTWARE
---------------------------------------------
- src/main/java/gov.nasa.worldwind: licenses/GDAL_License.TXT and NASA_Open_Source_Agreement_1.3.txt
- src/main/java/uk.gov.dstl.geo.osgb: licenses/LICENSE-OSGB
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
# Sol
An Kotlin library for science and math in the real world.
A Kotlin library for science and math in the real world.

The core logic behind [Trail Sense](https://github.com/kylecorry31/Trail-Sense). This is intended for my use only at this point, so there isn't any documentation on it.

## Installation (Gradle)
```gradle
repositories {
maven { url 'https://jitpack.io' }
}
Available on Maven Central.

```gradle
dependencies {
implementation 'com.github.kylecorry31:sol:<version>'
implementation 'com.kylecorry:sol:<version>'
}
```

Expand Down
54 changes: 39 additions & 15 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,27 +1,44 @@
import com.vanniktech.maven.publish.SonatypeHost

plugins {
kotlin("jvm") version "2.0.21"
id("java-library")
id("maven-publish")
id("com.vanniktech.maven.publish") version "0.30.0"
}

group = "com.kylecorry"
version = "10.0.2"

afterEvaluate {
publishing {
publications {
create<MavenPublication>("release") {
groupId = group.toString()
artifactId = "sol"
version = version
from(components["java"])
mavenPublishing {
coordinates("com.kylecorry", "sol", "10.0.3")

pom {
name.set("Sol")
description.set("A Kotlin library for science and math in the real world.")
url.set("https://github.com/kylecorry31/sol")
licenses {
license {
name.set("MIT License")
url.set("https://opensource.org/licenses/MIT")
}
}
developers {
developer {
id.set("kylecorry31")
name.set("Kyle Corry")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com/kylecorry31/sol.git")
developerConnection.set("scm:git:ssh://github.com:kylecorry31/sol.git")
url.set("https://github.com/kylecorry31/sol")
}
}

publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
}

repositories {
maven{
maven {
url = uri("https://jitpack.io")
content {
includeGroupByRegex("com\\.github.*")
Expand All @@ -31,8 +48,6 @@ repositories {
}

dependencies {
implementation("com.github.kylecorry31:Geo-Coordinate-Conversion-Java:master")
implementation("com.github.kylecorry31:osgb:v1.0.4")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.3")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.11.3")
testImplementation("com.willowtreeapps.assertk:assertk-jvm:0.28.1")
Expand All @@ -43,6 +58,15 @@ tasks.test {
useJUnitPlatform()
}

// Setup javadocs
tasks.withType<Javadoc> {
// Add the sources to the javadoc task
source = sourceSets.main.get().allJava
classpath += files(sourceSets.main.get().compileClasspath)
// Only include public and protected classes
include("**/public/**", "**/protected/**")
}

kotlin {
jvmToolchain(11)
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStorePath=wrapper/dists
Empty file modified gradlew
100644 → 100755
Empty file.
2 changes: 0 additions & 2 deletions jitpack.yml

This file was deleted.

Loading

0 comments on commit 752958f

Please sign in to comment.