Skip to content

Commit 7563b05

Browse files
authored
Merge pull request #2 from majusko/feature/remove-the-need-of-config-import
Reved the need of config import, added licence and updated the README.
2 parents d6fbd96 + f5a2a5d commit 7563b05

File tree

6 files changed

+31
-6
lines changed

6 files changed

+31
-6
lines changed

LICENSE.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Released under MIT License
2+
3+
MIT License
4+
5+
Copyright (c) 2019 Mario Kapusta
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[![Release](https://jitpack.io/v/majusko/grpc-jwt-spring-boot-starter.svg)](https://jitpack.io/#majusko/grpc-jwt-spring-boot-starter)
44
[![Build Status](https://travis-ci.com/majusko/grpc-jwt-spring-boot-starter.svg?branch=master)](https://travis-ci.com/majusko/grpc-jwt-spring-boot-starter)
55
[![Test Coverage](https://codecov.io/gh/majusko/grpc-jwt-spring-boot-starter/branch/master/graph/badge.svg)](https://codecov.io/gh/majusko/grpc-jwt-spring-boot-starter/branch/master)
6+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
67

78
Extending great [gRPC library](https://github.com/LogNet/grpc-spring-boot-starter) with Auth module. Easy implementation using a simple annotations similar to ones used in Spring Security module.
89

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>io.github.majusko</groupId>
66
<artifactId>grpc-jwt-spring-boot-starter</artifactId>
7-
<version>1.0.0</version>
7+
<version>1.0.2</version>
88
<name>grpc-jwt-spring-boot-starter</name>
99
<description>JWT Auth for your Grpc Spring Boot project</description>
1010

src/main/java/io/github/majusko/grpc/jwt/GrpcJwtAutoConfiguration.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
import io.github.majusko.grpc.jwt.service.JwtService;
55
import org.springframework.boot.context.properties.EnableConfigurationProperties;
66
import org.springframework.context.annotation.Bean;
7+
import org.springframework.context.annotation.ComponentScan;
78
import org.springframework.context.annotation.Configuration;
89
import org.springframework.core.env.Environment;
910

1011
@Configuration
12+
@ComponentScan
1113
@EnableConfigurationProperties(GrpcJwtProperties.class)
1214
public class GrpcJwtAutoConfiguration {
1315

src/main/java/io/github/majusko/grpc/jwt/GrpcJwtSpringBootStarterApplication.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55

66
@SpringBootApplication
77
public class GrpcJwtSpringBootStarterApplication {
8-
9-
public static void main(String[] args) {
10-
SpringApplication.run(GrpcJwtSpringBootStarterApplication.class, args);
11-
}
12-
8+
public static void main(String[] args) {
9+
SpringApplication.run(GrpcJwtSpringBootStarterApplication.class, args);
10+
}
1311
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.springframework.boot.autoconfigure.EnableAutoConfiguration=io.github.majusko.grpc.jwt.GrpcJwtAutoConfiguration

0 commit comments

Comments
 (0)