Skip to content
Open
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
32 changes: 26 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
/bin/
/build/
/.gradle/
/.settings/
/.classpath
/.project
# Gradle
.gradle
**/build/
!src/**/build/
gradle-app.setting
gradle-wrapper.jar
gradlew
gradlew.bat
.gradletasknamecache
!src/**/target/
**/target/

# Eclipse
/bin
.settings
.project
.classpath

# IntelliJ
out/
.idea/
*.iml

# Misc
.DS_Store
CraftBukkit/
86 changes: 42 additions & 44 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,24 @@ apply plugin: 'maven'
apply plugin: 'signing'

repositories {
mavenCentral()
mavenCentral()
}

group = 'com.github.racc'
archivesBaseName = "typesafeconfig-guice"
version = '0.1.0'
version = '0.2.0'

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/docs/javadoc'
}

task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}

artifacts {
archives jar
archives javadocJar
archives javadocJar
archives sourcesJar
}

Expand All @@ -37,51 +35,51 @@ uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: uzer, password: password)
authentication(userName: uzer, password: password)
}

snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: uzer, password: password)
}
authentication(userName: uzer, password: password)
}

pom.project {
name 'TypesafeConfigGuice'
packaging 'jar'
description 'TypesafeConfigGuice allows TypesafeConfig values to be injected with Guice'
url 'https://github.com/racc/typesafeconfig-guice'

scm {
url 'scm:[email protected]:racc/typesafeconfig-guice.git'
connection 'scm:[email protected]:racc/typesafeconfig-guice.git'
developerConnection 'scm:[email protected]:racc/typesafeconfig-guice.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'racc'
name 'Jason Then'
}
}
}
name 'TypesafeConfigGuice'
packaging 'jar'
description 'TypesafeConfigGuice allows TypesafeConfig values to be injected with Guice'
url 'https://github.com/racc/typesafeconfig-guice'

scm {
url 'scm:[email protected]:racc/typesafeconfig-guice.git'
connection 'scm:[email protected]:racc/typesafeconfig-guice.git'
developerConnection 'scm:[email protected]:racc/typesafeconfig-guice.git'
}

licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}

developers {
developer {
id 'racc'
name 'Jason Then'
}
}
}
}
}
}

dependencies {
compile 'com.typesafe:config:1.3.0'
compile group: 'io.github.lukehutch', name: 'fast-classpath-scanner', version: '2.18.1'
compile 'org.reflections:reflections:0.9.9'
compile 'com.google.inject:guice:4.0:no_aop'
testCompile 'junit:junit:4.12'
implementation group: 'com.typesafe', name: 'config', version: '1.4.0'
implementation group: 'io.github.classgraph', name: 'classgraph', version: '4.8.87'
implementation group: 'org.reflections', name: 'reflections', version: '0.9.12'
compileOnly group: 'com.google.inject', name: 'guice', version: '4.2.3'

testImplementation 'junit:junit:4.13'
}
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Fri Jul 31 20:54:23 CEST 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
4 changes: 3 additions & 1 deletion src/main/java/com/github/racc/tscg/Reflector.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
import java.util.Set;

public interface Reflector {
Set<Constructor> getConstructorsWithAnyParamAnnotated(Class<?> clazz);
Set<Constructor<?>> getConstructorsWithAnyParamAnnotated(Class<?> clazz);

Set<Method> getMethodsWithAnyParamAnnotated(Class<?> clazz);

Set<Field> getFieldsAnnotatedWith(Class<?> clazz);
}
Loading