Skip to content

Commit

Permalink
various updates
Browse files Browse the repository at this point in the history
  • Loading branch information
c-eg committed Nov 21, 2023
1 parent 488e70d commit 7d09ded
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 94 deletions.
5 changes: 0 additions & 5 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENCE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014, Holger Brandl
Copyright (c) 2023, Holger Brandl, Conor Egan
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
12 changes: 10 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
See
[releases](https://github.com/holgerbrandl/themoviedbapi/releases)
[releases](https://github.com/c-eg/themoviedbapi/releases)
for downloads and details




v1.15.1
-----

* bug fix with module-info
* update gradle & dependencies

v1.15
-----

Expand Down
90 changes: 4 additions & 86 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
plugins {
id "java-library"
id "application"
id "maven-publish"
id "signing"
id "io.github.gradle-nexus.publish-plugin" version "1.3.0"
}

//apply plugin: 'application'
//apply plugin: 'java'
//apply plugin: 'maven-publish'
//apply plugin: 'io.codearte.nexus-staging'

// not neeeded but does not work without
//mainClassName = "foo.Bar" // not needed but does not work without


repositories {
mavenCentral()
// mavenLocal()
}


dependencies {
// logging
implementation 'org.slf4j:slf4j-api:2.0.9'
Expand All @@ -41,6 +26,10 @@ dependencies {
implementation 'commons-codec:commons-codec:1.16.0'
}

// https://stackoverflow.com/questions/34377367/why-is-gradle-install-replacing-my-version-with-unspecified
group 'uk.co.conoregan'
version '1.15.1'

tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
Expand All @@ -50,75 +39,4 @@ java {
withSourcesJar()
}

//javadoc.options.addStringOption('Xdoclint:none', '-quiet')


//http://stackoverflow.com/questions/34377367/why-is-gradle-install-replacing-my-version-with-unspecified
group 'com.github.holgerbrandl'
version '1.15'

publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)

pom {
name = "themoviedbapi"
description = 'A java-wrapper around the JSON API provided by TMdB, which is an open database for movie and film content.'
url = 'https://github.com/holgerbrandl/themoviedbapi'

licenses {
license {
name = 'BSD'
url = 'https://github.com/holgerbrandl/themoviedbapi/blob/master/LICENCE.txt'
}
}


scm {
connection = 'scm:git:github.com/holgerbrandl/themoviedbapi.git'
url = 'https://github.com/holgerbrandl/themoviedbapi.git'
}


developers {
developer {
id = 'holgerbrandl'
name = 'Holger Brandl'
email = 'holgerbrandl@gmail.com'
}
}
//
// withXml {
// def dependenciesNode = asNode().appendNode('dependencies')
//
// project.configurations.implementation.allDependencies.each {
// def dependencyNode = dependenciesNode.appendNode('dependency')
// dependencyNode.appendNode('groupId', it.group)
// dependencyNode.appendNode('artifactId', it.name)
// dependencyNode.appendNode('version', it.version)
// }
// }
}
}
}
}


if (project.hasProperty('ossrhUsername')) nexusPublishing {
repositories {
sonatype {
// nexusUrl = uri("https://your-server.com/staging")
snapshotRepositoryUrl = uri(project.properties["sonatypeStagingProfileId"])
username = project.properties["ossrhUsername"]
password = project.properties["ossrhPassword"]
}
}
}

if (project.hasProperty('signing.keyId')) signing {
sign publishing.publications.mavenJava
}


javadoc.options.addStringOption('Xdoclint:none', '-quiet')

0 comments on commit 7d09ded

Please sign in to comment.