提交 6907ee6f 编写于 作者: 如梦技术's avatar 如梦技术 🐛

添加 ci.

上级 c55055b4
sudo: false
language: java
jdk:
- oraclejdk8
- openjdk8
os:
- linux
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
install: ./gradlew --version
script: ./gradlew build --refresh-dependencies --no-daemon --continue
after_success:
- ./ci/deploy_snapshot.sh
## mica(云母)
[![Build Status](https://www.travis-ci.org/lets-mica/mica.svg?branch=master)](https://www.travis-ci.org/lets-mica/mica)
[![Mica Maven release](https://img.shields.io/nexus/r/https/oss.sonatype.org/net.dreamlu/mica-bom.svg?style=flat-square)](https://mvnrepository.com/artifact/net.dreamlu/mica-bom)
[![Mica maven snapshots](https://img.shields.io/nexus/s/https/oss.sonatype.org/net.dreamlu/mica-bom.svg?style=flat-square)](https://oss.sonatype.org/content/repositories/snapshots/net/dreamlu/mica-bom)
......
#!/bin/bash
set -e -u
function gradle_publish() {
./gradlew clean bulid publish
}
if [ "$TRAVIS_REPO_SLUG" == "lets-mica/mica" ] && \
[ "$TRAVIS_JDK_VERSION" == "oraclejdk8" ] && \
[ "$TRAVIS_PULL_REQUEST" == "false" ] && \
[ "$TRAVIS_BRANCH" == "master" ]; then
echo "Publishing To Maven snapshot..."
gradle_publish
echo "Maven snapshot published."
fi
# 第三方登录组件
`mica-plus-social`,是 `mica-social` 的自动配置组件。
## 添加依赖
### maven
```xml
<dependency>
<groupId>net.dreamlu</groupId>
<artifactId>mica-plus-social</artifactId>
<version>${version}</version>
</dependency>
```
### gradle
```groovy
compile("net.dreamlu:mica-plus-social:${version}")
```
\ No newline at end of file
dependencies {
api project(":mica-social")
api "org.springframework.boot:spring-boot-autoconfigure"
compileOnly "org.springframework.cloud:spring-cloud-context"
annotationProcessor "net.dreamlu:mica-auto:${micaAutoVersion}"
}
/*
* Copyright (c) 2019-2029, Dreamlu 卢春梦 (596392912@qq.com & www.dreamlu.net).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.dreamlu.mica.social;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
/**
* 第三方社交登录自动配置
*
* @author L.cm
*/
@Configuration
@EnableConfigurationProperties(MicaSocialProperties.class)
public class MicaSocialAutoConfiguration {
}
/*
* Copyright (c) 2019-2029, Dreamlu 卢春梦 (596392912@qq.com & www.dreamlu.net).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package net.dreamlu.mica.social;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import net.dreamlu.mica.social.config.AuthConfig;
/**
* 第三方社交登录配置
*
* @author L.cm
*/
@Getter
@Setter
@RefreshScope
@ConfigurationProperties("mica.social")
public class MicaSocialProperties {
/**
* QQ 配置
*/
private AuthConfig qq;
/**
* github 配置
*/
private AuthConfig github;
/**
* 微信 配置
*/
private AuthConfig wechat;
/**
* Google 配置
*/
private AuthConfig google;
/**
* Microsoft 配置
*/
private AuthConfig microsoft;
/**
* Mi 配置
*/
private AuthConfig mi;
}
......@@ -6,8 +6,6 @@ import lombok.*;
* JustAuth配置类
*
* @author yadong.zhang (yadong.zhang0415(a)gmail.com)
* @version 1.0
* @since 1.8
*/
@Setter
@Getter
......
......@@ -14,3 +14,5 @@ include "mica-plus-redis"
include "mica-plus-mongo"
include "mica-plus-swagger"
include "mica-plus-ribbon"
include "mica-plus-social"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册